Skip to content

Commit 7b92d21

Browse files
committed
Skip coroutine tests
1 parent 789d222 commit 7b92d21

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/unittest_tags/test_types.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,15 @@
1717
*graalpython.lib-python.3.test.test_types.ClassCreationTests.test_one_argument_type
1818
*graalpython.lib-python.3.test.test_types.ClassCreationTests.test_prepare_class
1919
*graalpython.lib-python.3.test.test_types.ClassCreationTests.test_resolve_bases
20+
*graalpython.lib-python.3.test.test_types.CoroutineTests.test_async_def
2021
*graalpython.lib-python.3.test.test_types.CoroutineTests.test_duck_coro
2122
*graalpython.lib-python.3.test.test_types.CoroutineTests.test_duck_corogen
23+
*graalpython.lib-python.3.test.test_types.CoroutineTests.test_duck_functional_gen
2224
*graalpython.lib-python.3.test.test_types.CoroutineTests.test_duck_gen
25+
*graalpython.lib-python.3.test.test_types.CoroutineTests.test_gen
26+
*graalpython.lib-python.3.test.test_types.CoroutineTests.test_genfunc
2327
*graalpython.lib-python.3.test.test_types.CoroutineTests.test_non_gen_values
28+
*graalpython.lib-python.3.test.test_types.CoroutineTests.test_returning_itercoro
2429
*graalpython.lib-python.3.test.test_types.CoroutineTests.test_wrapper_object
2530
*graalpython.lib-python.3.test.test_types.CoroutineTests.test_wrong_args
2631
*graalpython.lib-python.3.test.test_types.MappingProxyTests.test_chainmap

graalpython/lib-python/3/test/test_types.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,6 +1368,7 @@ def foo():
13681368
foo = types.coroutine(foo)
13691369
self.assertIs(aw, foo())
13701370

1371+
@support.impl_detail("async support", graalvm=False)
13711372
def test_async_def(self):
13721373
# Test that types.coroutine passes 'async def' coroutines
13731374
# without modification
@@ -1419,6 +1420,7 @@ def foo():
14191420
self.assertIs(foo(), coro)
14201421
self.assertIs(foo().__await__(), coro)
14211422

1423+
@support.impl_detail("async support", graalvm=False)
14221424
def test_duck_gen(self):
14231425
class GenLike:
14241426
def send(self): pass
@@ -1524,6 +1526,7 @@ def bar(): return wrapper
15241526
ref = weakref.ref(wrapper)
15251527
self.assertIs(ref(), wrapper)
15261528

1529+
@support.impl_detail("async support", graalvm=False)
15271530
def test_duck_functional_gen(self):
15281531
class Generator:
15291532
"""Emulates the following generator (very clumsy):
@@ -1575,6 +1578,7 @@ async def corofunc():
15751578
else:
15761579
self.fail('StopIteration was expected')
15771580

1581+
@support.impl_detail("async support", graalvm=False)
15781582
def test_gen(self):
15791583
def gen_func():
15801584
yield 1
@@ -1607,6 +1611,7 @@ def foo(): return gen
16071611
foo = types.coroutine(foo)
16081612
self.assertIs(foo().__await__(), gen)
16091613

1614+
@support.impl_detail("async support", graalvm=False)
16101615
def test_returning_itercoro(self):
16111616
@types.coroutine
16121617
def gen():
@@ -1624,6 +1629,7 @@ def foo():
16241629
foo = types.coroutine(foo)
16251630
self.assertIs(foo(), gencoro)
16261631

1632+
@support.impl_detail("async support", graalvm=False)
16271633
def test_genfunc(self):
16281634
def gen(): yield
16291635
self.assertIs(types.coroutine(gen), gen)

0 commit comments

Comments
 (0)