Skip to content

Commit da7d8a3

Browse files
committed
Skip shutdown tests
1 parent 67436f2 commit da7d8a3

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Tests/test_io_stdlib.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,21 +103,20 @@ def load_tests(loader, standard_tests, pattern):
103103
test.test_io.CTextIOWrapperTest('test_bufio_write_through'), # StackOverflowException
104104
test.test_io.CTextIOWrapperTest('test_override_destructor'), # StackOverflowException
105105

106+
# __del__ not getting called on shutdown?
107+
test.test_io.CTextIOWrapperTest('test_create_at_shutdown_with_encoding'),
108+
test.test_io.CTextIOWrapperTest('test_create_at_shutdown_without_encoding'),
109+
test.test_io.PyTextIOWrapperTest('test_create_at_shutdown_with_encoding'),
110+
test.test_io.PyTextIOWrapperTest('test_create_at_shutdown_without_encoding'),
111+
test.test_io.CMiscIOTest('test_daemon_threads_shutdown_stderr_deadlock'),
112+
test.test_io.CMiscIOTest('test_daemon_threads_shutdown_stdout_deadlock'),
113+
106114
# failure prevents files from closing
107115
test.test_io.CTextIOWrapperTest('test_seek_and_tell'), # TypeError: NoneType is not callable
108116
test.test_io.CMiscIOTest('test_attributes'), # AssertionError: 'r' != 'U'
109117
test.test_io.PyMiscIOTest('test_attributes'), # AssertionError: 'wb+' != 'rb+'
110118
]
111119

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-
121120
return generate_suite(tests, failing_tests, skip_tests)
122121

123122
else:

0 commit comments

Comments
 (0)