Skip to content

Commit ab52431

Browse files
committed
Fix failing tests
1 parent 465ecda commit ab52431

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

src/core/IronPython.StdLib/lib/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ def coroutine(func):
227227
# Check if 'func' is a generator function.
228228
# (0x20 == CO_GENERATOR)
229229
if co_flags & 0x20:
230+
return func # ironpython: todo figure this out
230231
# TODO: Implement this in C.
231232
co = func.__code__
232233
func.__code__ = CodeType(

tests/suite/test_types_stdlib.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,9 @@ def load_tests(loader, standard_tests, pattern):
1717
failing_tests = [
1818
test.test_types.ClassCreationTests('test_bad___prepare__'), # AssertionError
1919
test.test_types.ClassCreationTests('test_one_argument_type'), # AssertionError: TypeError not raised
20-
test.test_types.CoroutineTests('test_async_def'), # https://github.com/IronLanguages/ironpython3/issues/98
21-
test.test_types.CoroutineTests('test_duck_coro'), # https://github.com/IronLanguages/ironpython3/issues/98
22-
test.test_types.CoroutineTests('test_duck_corogen'), # https://github.com/IronLanguages/ironpython3/issues/98
23-
test.test_types.CoroutineTests('test_duck_functional_gen'), # https://github.com/IronLanguages/ironpython3/issues/98
24-
test.test_types.CoroutineTests('test_duck_gen'), # https://github.com/IronLanguages/ironpython3/issues/98
2520
test.test_types.CoroutineTests('test_gen'), # https://github.com/IronLanguages/ironpython3/issues/98
2621
test.test_types.CoroutineTests('test_genfunc'), # https://github.com/IronLanguages/ironpython3/issues/98
27-
test.test_types.CoroutineTests('test_non_gen_values'), # https://github.com/IronLanguages/ironpython3/issues/98
2822
test.test_types.CoroutineTests('test_returning_itercoro'), # https://github.com/IronLanguages/ironpython3/issues/98
29-
test.test_types.CoroutineTests('test_wrapper_object'), # https://github.com/IronLanguages/ironpython3/issues/98
3023
test.test_types.MappingProxyTests('test_chainmap'), # TypeError: expected dict, got Object_1$1
3124
test.test_types.MappingProxyTests('test_constructor'), # TypeError: expected dict, got Object_1$1
3225
test.test_types.MappingProxyTests('test_customdict'), # AssertionError: False is not true

0 commit comments

Comments
 (0)