Skip to content

Commit

Permalink
Disable tests on .NET
Browse files Browse the repository at this point in the history
  • Loading branch information
slozier committed Nov 5, 2024
1 parent 9c2e61c commit 599d9b5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Tests/test_io_stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
## Run selected tests from test_io from StdLib
##

from iptest import is_ironpython, generate_suite, run_test
from iptest import is_ironpython, is_netcoreapp, generate_suite, run_test

import test.test_io

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

if is_netcoreapp:
# __del__ not getting called on shutdown
skip_tests += [
test.test_io.CTextIOWrapperTest('test_create_at_shutdown_with_encoding'), # AssertionError: 'ok' != ''
test.test_io.CTextIOWrapperTest('test_create_at_shutdown_without_encoding'), # AssertionError: 'ok' != ''
test.test_io.PyTextIOWrapperTest('test_create_at_shutdown_with_encoding'), # AssertionError: 'ok' != ''
test.test_io.PyTextIOWrapperTest('test_create_at_shutdown_without_encoding'), # AssertionError: 'ok' != ''
]

return generate_suite(tests, failing_tests, skip_tests)

else:
Expand Down

0 comments on commit 599d9b5

Please sign in to comment.