Skip to content

Commit 051bb37

Browse files
committed
Disable some new and renamed tests
1 parent bec5cae commit 051bb37

4 files changed

Lines changed: 112 additions & 78 deletions

File tree

Src/IronPythonTest/Cases/CPythonCasesManifest.ini

Lines changed: 55 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ Ignore=true
8383
[CPython.distutils.test_install_lib]
8484
Ignore=true
8585

86+
[CPython.distutils.test_msvccompiler] # new in 3.5
87+
Ignore=true
88+
8689
[CPython.distutils.test_sdist]
8790
Ignore=true
8891

@@ -104,12 +107,19 @@ Ignore=true
104107
Ignore=true
105108
Reason=ImportError: No module named audioop
106109

110+
[CPython.test_asdl_parser] # new in 3.5
111+
Ignore=true
112+
Reason=unittest.case.SkipTest: test irrelevant for an installed Python
113+
107114
[CPython.test_array]
108115
IsolationLevel=PROCESS # https://github.com/IronLanguages/ironpython3/issues/489
109116

110117
[CPython.test_ast]
111118
Ignore=true
112119

120+
[CPython.test_asyncgen] # new in 3.6 - https://github.com/IronLanguages/ironpython3/issues/107
121+
Ignore=true
122+
113123
[CPython.test_asynchat] # Module will be removed in 3.12 - https://github.com/IronLanguages/ironpython3/issues/1352
114124
RunCondition=NOT $(IS_OSX) # TODO: debug
115125

@@ -125,6 +135,9 @@ Ignore=true
125135
[CPython.test_asyncio.test_locks]
126136
Ignore=true
127137

138+
[CPython.test_asyncio.test_pep492] # https://github.com/IronLanguages/ironpython3/issues/98
139+
Ignore=true
140+
128141
[CPython.test_asyncio.test_sslproto]
129142
Ignore=true
130143

@@ -156,6 +169,9 @@ Ignore=true
156169
Ignore=true
157170
Reason=ImportError: No module named audioop
158171

172+
[CPython.test_bdb] # new in 3.6
173+
Ignore=true
174+
159175
[CPython.test_bigmem]
160176
Ignore=true
161177

@@ -284,6 +300,9 @@ IsolationLevel=ENGINE
284300
MaxRecursion=100
285301
Ignore=true
286302

303+
[CPython.test_coroutines] # new in 3.5
304+
Ignore=true # blocked by https://github.com/IronLanguages/ironpython3/issues/98
305+
287306
[CPython.test_cprofile]
288307
Ignore=true
289308
Reason=ImportError: No module named _lsprof
@@ -335,6 +354,9 @@ Reason=unittest.case.SkipTest: test works only on Solaris OS family
335354
[CPython.test_dict] # IronPython.test_dict_stdlib
336355
Ignore=true
337356

357+
[CPython.test_dict_version] # new in 3.6
358+
Ignore=true
359+
338360
[CPython.test_dictviews]
339361
IsolationLevel=ENGINE
340362
MaxRecursion=100
@@ -358,6 +380,9 @@ Ignore=true
358380
Ignore=true
359381
Reason=StackOverflowException
360382

383+
[CPython.test_dtrace] # new in 3.6
384+
Ignore=true
385+
361386
[CPython.test_dynamic]
362387
IsolationLevel=PROCESS # https://github.com/IronLanguages/ironpython3/issues/489
363388

@@ -390,6 +415,9 @@ Ignore=true
390415
Ignore=true
391416
Reason=unittest.case.SkipTest: test works only on Linux 2.6
392417

418+
[CPython.test_exception_hierarchy] # used to be test_pep3151
419+
Ignore=true
420+
393421
[CPython.test_exceptions]
394422
Ignore=true
395423
Reason=StackOverflowException
@@ -491,7 +519,7 @@ Reason=Blocking
491519

492520
[CPython.test_idle]
493521
Ignore=true
494-
Reason=ImportError: No module named '_tkinter'
522+
Reason=unittest.case.SkipTest: No module named '_tkinter'
495523

496524
[CPython.test_imaplib]
497525
Ignore=true
@@ -649,7 +677,6 @@ Reason=unittest.case.SkipTest: os.openpty() not available.
649677

650678
[CPython.test_os]
651679
Ignore=true
652-
Reason=AttributeError: 'module' object has no attribute 'isatty'
653680

654681
[CPython.test_ossaudiodev] # Module will be removed in 3.13 - https://github.com/IronLanguages/ironpython3/issues/1352
655682
Ignore=true
@@ -670,20 +697,6 @@ Reason=Blocking
670697
[CPython.test_peepholer]
671698
Ignore=true
672699

673-
[CPython.test_pep277]
674-
RunCondition=NOT $(IS_POSIX) # TODO: debug
675-
NotParallelSafe=true # Renames files to/from a static name 'tmp'
676-
677-
[CPython.test_pep380] # IronPython.test_pep380_stdlib
678-
Ignore=true
679-
680-
[CPython.test_pep3131]
681-
Ignore=true
682-
Reason=SyntaxError: invalid syntax
683-
684-
[CPython.test_pep3151]
685-
Ignore=true
686-
687700
[CPython.test_pickle]
688701
Ignore=true
689702
Reason=StackOverflowException
@@ -928,7 +941,7 @@ Ignore=true
928941

929942
[CPython.test_tcl]
930943
Ignore=true
931-
Reason=ImportError: No module named '_tkinter'
944+
Reason=unittest.case.SkipTest: No module named '_tkinter'
932945

933946
[CPython.test_telnetlib] # Module will be removed in 3.13 - https://github.com/IronLanguages/ironpython3/issues/1352
934947
RunCondition=NOT $(IS_LINUX) # TODO: debug
@@ -963,9 +976,13 @@ Ignore=true
963976
[CPython.test_timeout]
964977
RunCondition=NOT $(IS_MONO) # TODO: investigate
965978

979+
[CPython.test_tix] # new in 3.5
980+
Ignore=true
981+
Reason=unittest.case.SkipTest: No module named '_tkinter'
982+
966983
[CPython.test_tk]
967984
Ignore=true
968-
Reason=ImportError: No module named '_tkinter'
985+
Reason=unittest.case.SkipTest: No module named '_tkinter'
969986

970987
[CPython.test_tools]
971988
Ignore=true
@@ -982,15 +999,22 @@ Reason=ImportError: No module named _tracemalloc
982999

9831000
[CPython.test_ttk_guionly]
9841001
Ignore=true
985-
Reason=ImportError: No module named '_tkinter'
1002+
Reason=unittest.case.SkipTest: No module named '_tkinter'
9861003

9871004
[CPython.test_ttk_textonly]
9881005
Ignore=true
989-
Reason=ImportError: No module named '_tkinter'
1006+
Reason=unittest.case.SkipTest: No module named '_tkinter'
1007+
1008+
[CPython.test_turtle] # new in 3.5
1009+
Ignore=true
1010+
Reason=unittest.case.SkipTest: No module named '_tkinter'
9901011

9911012
[CPython.test_types] # IronPython.test_types_stdlib
9921013
Ignore=true
9931014

1015+
[CPython.test_typing] # new in 3.5
1016+
Ignore=true # blocked by https://github.com/IronLanguages/ironpython3/issues/98
1017+
9941018
[CPython.test_ucn]
9951019
Ignore=true
9961020
Reason=Blocked by https://github.com/IronLanguages/ironpython3/issues/691
@@ -1001,6 +1025,14 @@ Ignore=true
10011025
[CPython.test_unicode_file]
10021026
Ignore=true
10031027

1028+
[CPython.test_unicode_file_functions] # used to be test_pep277
1029+
RunCondition=NOT $(IS_POSIX) # TODO: debug
1030+
NotParallelSafe=true # Renames files to/from a static name 'tmp'
1031+
1032+
[CPython.test_unicode_identifiers] # used to be test_pep3131
1033+
Ignore=true
1034+
Reason=SyntaxError: invalid syntax
1035+
10041036
[CPython.test_unicodedata]
10051037
Ignore=true
10061038

@@ -1075,6 +1107,9 @@ Ignore=true
10751107
Ignore=true
10761108
Reason=StackOverflowException - https://github.com/IronLanguages/ironpython2/issues/182
10771109

1110+
[CPython.test_yield_from] # IronPython.test_yield_from_stdlib - used to be test_pep380
1111+
Ignore=true
1112+
10781113
[CPython.test_zipfile]
10791114
Ignore=true
10801115

Src/StdLib/Lib/test/test_yield_from.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import io
1212
import sys
1313
import inspect
14-
import parser
1514

1615
from test.support import captured_stderr, disable_gc, gc_collect
1716

Tests/test_pep380_stdlib.py

Lines changed: 0 additions & 57 deletions
This file was deleted.

Tests/test_yield_from_stdlib.py

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Licensed to the .NET Foundation under one or more agreements.
2+
# The .NET Foundation licenses this file to you under the Apache 2.0 License.
3+
# See the LICENSE file in the project root for more information.
4+
5+
##
6+
## Run selected tests from test_yield_from from StdLib
7+
##
8+
9+
import unittest
10+
import sys
11+
12+
from iptest import run_test
13+
14+
import test.test_yield_from
15+
16+
def load_tests(loader, standard_tests, pattern):
17+
if sys.implementation.name == 'ironpython':
18+
suite = unittest.TestSuite()
19+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_attempted_yield_from_loop'))
20+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_attempting_to_send_to_non_generator'))
21+
suite.addTest(unittest.expectedFailure(test.test_yield_from.TestPEP380Operation('test_broken_getattr_handling'))) # TODO: figure out
22+
suite.addTest(unittest.expectedFailure(test.test_yield_from.TestPEP380Operation('test_catching_exception_from_subgen_and_returning'))) # TODO: figure out
23+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_close_with_cleared_frame'))
24+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_conversion_of_sendNone_to_next'))
25+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_custom_iterator_return'))
26+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_delegating_close'))
27+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_delegating_generators_claim_to_be_running'))
28+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_delegating_throw'))
29+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_delegating_throw_to_non_generator'))
30+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_delegation_of_close_to_non_generator'))
31+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_delegation_of_initial_next_to_subgenerator'))
32+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_delegation_of_next_call_to_subgenerator'))
33+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_delegation_of_next_to_non_generator'))
34+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_delegation_of_send'))
35+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_delegator_is_visible_to_debugger'))
36+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_exception_in_initial_next_call'))
37+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_exception_value_crash'))
38+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_generator_return_value'))
39+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_handing_exception_while_delegating_close'))
40+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_handling_exception_while_delegating_send'))
41+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_next_and_return_with_value'))
42+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_raising_exception_in_delegated_next_call'))
43+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_raising_exception_in_initial_next_call'))
44+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_returning_value_from_delegated_throw'))
45+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_send_and_return_with_value'))
46+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_send_tuple_with_custom_generator'))
47+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_throwing_GeneratorExit_into_subgen_that_raises'))
48+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_throwing_GeneratorExit_into_subgen_that_returns'))
49+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_throwing_GeneratorExit_into_subgenerator_that_yields'))
50+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_value_attribute_of_StopIteration_exception'))
51+
suite.addTest(test.test_yield_from.TestPEP380Operation('test_yield_from_empty'))
52+
return suite
53+
54+
else:
55+
return loader.loadTestsFromModule(test.test_yield_from, pattern)
56+
57+
run_test(__name__)

0 commit comments

Comments
 (0)