Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 50ce32e

Browse files
committed
test_code.py: fix flaky test due to data race
Fixes #60
1 parent 1e0f7c8 commit 50ce32e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def __init__(self, f, test):
425425
self.f = f
426426
self.test = test
427427
def run(self):
428-
del self.f
428+
self.f = None
429429
gc.collect()
430430
self.test.assertEqual(LAST_FREED, 500)
431431

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy