Skip to content

Commit

Permalink
Fix tests after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
slozier committed Jul 4, 2023
1 parent bffc150 commit d7b252c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Src/StdLib/Lib/test/test_utf8_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import textwrap
import unittest
from test import support
from test.script_helper import assert_python_ok, assert_python_failure
from test.support.script_helper import assert_python_ok, assert_python_failure


MS_WINDOWS = (sys.platform == 'win32')
Expand Down
11 changes: 7 additions & 4 deletions Tests/test_datetime_stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def load_tests(loader, standard_tests, pattern):
test.datetimetester.TestDateTime('test_microsecond_rounding'),
test.datetimetester.TestDateTime('test_strftime_with_bad_tzname_replace'),
test.datetimetester.TestDateTime('test_subclass_replace'), # TypeError: replace() got an unexpected keyword argument 'year'
test.datetimetester.TestDateTime('test_timestamp_limits'), # ValueError: The added or subtracted value results in an un-representable DateTime.
test.datetimetester.TestDateTimeTZ('test_backdoor_resistance'),
test.datetimetester.TestDateTimeTZ('test_bad_constructor_arguments'), # https://github.com/IronLanguages/ironpython3/issues/1459
test.datetimetester.TestDateTimeTZ('test_compat_unpickle'), # TypeError: function takes at least 3 arguments (2 given)
Expand All @@ -48,7 +47,6 @@ def load_tests(loader, standard_tests, pattern):
test.datetimetester.TestDateTimeTZ('test_mixed_compare'),
test.datetimetester.TestDateTimeTZ('test_strftime_with_bad_tzname_replace'),
test.datetimetester.TestDateTimeTZ('test_subclass_replace'), # TypeError: replace() got an unexpected keyword argument 'year'
test.datetimetester.TestDateTimeTZ('test_timestamp_limits'), # ValueError: The added or subtracted value results in an un-representable DateTime.
test.datetimetester.TestDateTimeTZ('test_tz_aware_arithmetic'),
test.datetimetester.TestLocalTimeDisambiguation('test_comparison'), # https://github.com/IronLanguages/ironpython3/issues/1459
test.datetimetester.TestLocalTimeDisambiguation('test_constructors'), # https://github.com/IronLanguages/ironpython3/issues/1459
Expand Down Expand Up @@ -79,7 +77,6 @@ def load_tests(loader, standard_tests, pattern):
test.datetimetester.TestSubclassDateTime('test_replace'), # TODO
test.datetimetester.TestSubclassDateTime('test_strftime_with_bad_tzname_replace'),
test.datetimetester.TestSubclassDateTime('test_subclass_replace'), # TypeError: replace() got an unexpected keyword argument 'year'
test.datetimetester.TestSubclassDateTime('test_timestamp_limits'), # ValueError: The added or subtracted value results in an un-representable DateTime.
test.datetimetester.TestTime('test_backdoor_resistance'), # AssertionError: "^bad tzinfo state arg$" does not match "expected Int32, got bytes"
test.datetimetester.TestTime('test_compat_unpickle'), # TypeError: expected Int32, got str
test.datetimetester.TestTime('test_isoformat'), # TypeError: isoformat() takes no arguments (1 given)
Expand All @@ -97,7 +94,13 @@ def load_tests(loader, standard_tests, pattern):
test.datetimetester.ZoneInfoTest('test_system_transitions'), # AttributeError: 'module' object has no attribute 'tzset'
]

return generate_suite(tests, failing_tests)
skip_tests = []
for test_or_suite in tests:
if isinstance(test_or_suite, test.datetimetester.ZoneInfoCompleteTest):
for t in test_or_suite:
skip_tests.append(t)

return generate_suite(tests, failing_tests, skip_tests)

else:
return tests
Expand Down
1 change: 0 additions & 1 deletion Tests/test_ssl_stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def load_tests(loader, standard_tests, pattern):

if is_ironpython:
failing_tests = [
test.test_ssl.BasicSocketTests('test_cert_time_to_seconds'), # ValueError: time data does not match format
test.test_ssl.BasicSocketTests('test_enum_crls'), # AssertionError: [] is not true
test.test_ssl.BasicSocketTests('test_errors_sslwrap'), # NotImplementedError: keyfile
test.test_ssl.BasicSocketTests('test_get_default_verify_paths'), # AttributeError: 'module' object has no attribute 'get_default_verify_paths'
Expand Down

0 comments on commit d7b252c

Please sign in to comment.