We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc8a7a4 commit e26e98aCopy full SHA for e26e98a
Lib/site.py
@@ -76,8 +76,7 @@
76
77
78
if os.environ.get("PYTHONSITEDEBUG", ""):
79
- import pdb
80
- pdb.set_trace()
+ breakpoint()
81
82
83
# Prefixes for site-packages; add additional prefixes like /usr/local here
Lib/test/test_site.py
@@ -320,7 +320,10 @@ def _run(input_):
320
return out
321
re_pdb_prompt = rb"(?m)^\(Pdb\)\s*$"
322
envvar = 'PYTHONSITEDEBUG'
323
+
324
environ = os.environ.copy()
325
+ try: del environ['PYTHONBREAKPOINT']
326
+ except KeyError: pass
327
328
environ[envvar]="1"
329
self.assertRegex(_run(True), re_pdb_prompt)
0 commit comments