From dcbba381d44f081dd3974326337c30c6850a65bf Mon Sep 17 00:00:00 2001 From: Anthony Shaw Date: Fri, 23 Mar 2018 15:31:16 +1100 Subject: [PATCH] add changelog entry --- changelog/3180.feature.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 changelog/3180.feature.rst diff --git a/changelog/3180.feature.rst b/changelog/3180.feature.rst new file mode 100644 index 000000000..ee696fad2 --- /dev/null +++ b/changelog/3180.feature.rst @@ -0,0 +1,12 @@ +Support for Python 3.7s builtin breakpoint() method. + +When breakpoint() is called and PYTHONBREAKPOINT is set to the default value, +PyTest will use the Custom PDB trace UI instead of the system default Pdb. + +When tests are complete, the system will default back to the system Pdb trace UI. + +If --pdb is called on execution of Pytest, the custom Pdb interface is used on both +breakpoint() and failed tests/unhandled exceptions. + +If --pdbcls is used, the custom class will be executed when a test fails (as expected within existing behaviour), +but also when breakpoint() is called from within a test, the custom class debugger will be instantiated.