Skip to content

Commit 599d9b5

Browse files
committed
Disable tests on .NET
1 parent 9c2e61c commit 599d9b5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Tests/test_io_stdlib.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
## Run selected tests from test_io from StdLib
77
##
88

9-
from iptest import is_ironpython, generate_suite, run_test
9+
from iptest import is_ironpython, is_netcoreapp, generate_suite, run_test
1010

1111
import test.test_io
1212

@@ -109,6 +109,15 @@ def load_tests(loader, standard_tests, pattern):
109109
test.test_io.PyMiscIOTest('test_attributes'), # AssertionError: 'wb+' != 'rb+'
110110
]
111111

112+
if is_netcoreapp:
113+
# __del__ not getting called on shutdown
114+
skip_tests += [
115+
test.test_io.CTextIOWrapperTest('test_create_at_shutdown_with_encoding'), # AssertionError: 'ok' != ''
116+
test.test_io.CTextIOWrapperTest('test_create_at_shutdown_without_encoding'), # AssertionError: 'ok' != ''
117+
test.test_io.PyTextIOWrapperTest('test_create_at_shutdown_with_encoding'), # AssertionError: 'ok' != ''
118+
test.test_io.PyTextIOWrapperTest('test_create_at_shutdown_without_encoding'), # AssertionError: 'ok' != ''
119+
]
120+
112121
return generate_suite(tests, failing_tests, skip_tests)
113122

114123
else:

0 commit comments

Comments
 (0)