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 311ae46 commit fd93f37Copy full SHA for fd93f37
Lib/test/support/__init__.py
@@ -1916,13 +1916,13 @@ def __enter__(self):
1916
#
1917
# This assumes that this context manager is used in tests
1918
# that might trigger the next manager.
1919
+ import subprocess
1920
cmd = ['/usr/bin/defaults', 'read',
1921
'com.apple.CrashReporter', 'DialogType']
1922
proc = subprocess.Popen(cmd,
1923
stdout=subprocess.PIPE,
1924
stderr=subprocess.PIPE)
- with proc:
1925
- stdout = proc.communicate()[0]
+ stdout = proc.communicate()[0]
1926
if stdout.strip() == b'developer':
1927
sys.stdout.write("this test triggers the Crash Reporter, "
1928
"that is intentional")
0 commit comments