Skip to content

Commit 4a63ff5

Browse files
committed
Make the shenanigans more clear.
1 parent 1607c8c commit 4a63ff5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_concurrent_futures/test_interpreter_pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def pipe(self):
5656
return r, w
5757

5858

59-
class Shenanigans:
59+
class PickleShenanigans:
6060
"""Succeeds with pickle.dumps(), but fails with pickle.loads()"""
6161
def __init__(self, value):
6262
if value == 1:
@@ -293,7 +293,7 @@ def test_pickle_errors_propagate(self):
293293
# GH-125864: Pickle errors happen before the script tries to execute, so the
294294
# queue used to wait infinitely.
295295

296-
fut = self.executor.submit(Shenanigans(0))
296+
fut = self.executor.submit(PickleShenanigans(0))
297297
with self.assertRaisesRegex(RuntimeError, "gotcha"):
298298
fut.result()
299299

0 commit comments

Comments
 (0)