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 b9af102 commit 2e2e467Copy full SHA for 2e2e467
Lib/test/test_atexit.py
@@ -201,6 +201,7 @@ def test_atexit_with_low_memory(self):
201
import _testcapi
202
203
def callback():
204
+ print("hello")
205
pass
206
207
atexit.register(callback)
@@ -211,9 +212,10 @@ def callback():
211
212
with script_helper.spawn_python('-c', user_input,
213
stderr=subprocess.PIPE) as p:
214
p.wait()
- p.stdout.read()
215
+ output = p.stdout.read()
216
217
self.assertIn(p.returncode, (0, 1))
218
+ self.assertNotIn(b"hello", output)
219
220
221
if __name__ == "__main__":
0 commit comments