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

Commit bb3eb7a

Browse files
author
Anselm Kruis
committed
Stackless issue #302: Fix test case test_pickle.TestAsyncGenAThrowPickling
Upstream fix for bpo-39606 broke the test case.
1 parent 70719e7 commit bb3eb7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Stackless/unittests/test_pickle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ def test_without_pickling(self):
934934
with self.assertRaises(ZeroDivisionError) as cm:
935935
agt.__next__()
936936
self.assertIs(cm.exception, e)
937-
self.assertTupleEqual(self.inspect(agt), ((e, ), 1, True))
937+
self.assertTupleEqual(self.inspect(agt), ((e, ), 2, True))
938938

939939
def test_pickling1(self):
940940
a = self.ag()
@@ -954,7 +954,7 @@ def test_pickling1(self):
954954
with self.assertRaises(ZeroDivisionError) as cm:
955955
agt.__next__()
956956
self.assertIs(cm.exception, e)
957-
self.assertTupleEqual(self.inspect(agt), ((e, ), 1, True))
957+
self.assertTupleEqual(self.inspect(agt), ((e, ), 2, True))
958958

959959

960960
class TestContextRunCallbackPickling(StacklessTestCase):

0 commit comments

Comments
 (0)