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 1607c8c commit 4a63ff5Copy full SHA for 4a63ff5
Lib/test/test_concurrent_futures/test_interpreter_pool.py
@@ -56,7 +56,7 @@ def pipe(self):
56
return r, w
57
58
59
-class Shenanigans:
+class PickleShenanigans:
60
"""Succeeds with pickle.dumps(), but fails with pickle.loads()"""
61
def __init__(self, value):
62
if value == 1:
@@ -293,7 +293,7 @@ def test_pickle_errors_propagate(self):
293
# GH-125864: Pickle errors happen before the script tries to execute, so the
294
# queue used to wait infinitely.
295
296
- fut = self.executor.submit(Shenanigans(0))
+ fut = self.executor.submit(PickleShenanigans(0))
297
with self.assertRaisesRegex(RuntimeError, "gotcha"):
298
fut.result()
299
0 commit comments