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

Commit bd76867

Browse files
author
Anselm Kruis
committed
Issue #112: Prepare Stackless 3.5, enable pickling of coroutines
Skip CPython test cases for coroutine pickling / copying. https://bitbucket.org/stackless-dev/stackless/issues/112
1 parent 60bbffd commit bd76867

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_coroutines.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,6 +1598,7 @@ async def foo():
15981598
foo().send(None)
15991599
self.assertEqual(result, [42])
16001600

1601+
@unittest.skipIf(support.stackless, "Stackless can copy coroutines")
16011602
def test_copy(self):
16021603
async def func(): pass
16031604
coro = func()
@@ -1611,6 +1612,7 @@ async def func(): pass
16111612
finally:
16121613
aw.close()
16131614

1615+
@unittest.skipIf(support.stackless, "Stackless can pickle coroutines")
16141616
def test_pickle(self):
16151617
async def func(): pass
16161618
coro = func()

0 commit comments

Comments
 (0)