Skip to content

Commit d7b252c

Browse files
committed
Fix tests after merge
1 parent bffc150 commit d7b252c

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Src/StdLib/Lib/test/test_utf8_mode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import textwrap
88
import unittest
99
from test import support
10-
from test.script_helper import assert_python_ok, assert_python_failure
10+
from test.support.script_helper import assert_python_ok, assert_python_failure
1111

1212

1313
MS_WINDOWS = (sys.platform == 'win32')

Tests/test_datetime_stdlib.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def load_tests(loader, standard_tests, pattern):
3434
test.datetimetester.TestDateTime('test_microsecond_rounding'),
3535
test.datetimetester.TestDateTime('test_strftime_with_bad_tzname_replace'),
3636
test.datetimetester.TestDateTime('test_subclass_replace'), # TypeError: replace() got an unexpected keyword argument 'year'
37-
test.datetimetester.TestDateTime('test_timestamp_limits'), # ValueError: The added or subtracted value results in an un-representable DateTime.
3837
test.datetimetester.TestDateTimeTZ('test_backdoor_resistance'),
3938
test.datetimetester.TestDateTimeTZ('test_bad_constructor_arguments'), # https://github.com/IronLanguages/ironpython3/issues/1459
4039
test.datetimetester.TestDateTimeTZ('test_compat_unpickle'), # TypeError: function takes at least 3 arguments (2 given)
@@ -48,7 +47,6 @@ def load_tests(loader, standard_tests, pattern):
4847
test.datetimetester.TestDateTimeTZ('test_mixed_compare'),
4948
test.datetimetester.TestDateTimeTZ('test_strftime_with_bad_tzname_replace'),
5049
test.datetimetester.TestDateTimeTZ('test_subclass_replace'), # TypeError: replace() got an unexpected keyword argument 'year'
51-
test.datetimetester.TestDateTimeTZ('test_timestamp_limits'), # ValueError: The added or subtracted value results in an un-representable DateTime.
5250
test.datetimetester.TestDateTimeTZ('test_tz_aware_arithmetic'),
5351
test.datetimetester.TestLocalTimeDisambiguation('test_comparison'), # https://github.com/IronLanguages/ironpython3/issues/1459
5452
test.datetimetester.TestLocalTimeDisambiguation('test_constructors'), # https://github.com/IronLanguages/ironpython3/issues/1459
@@ -79,7 +77,6 @@ def load_tests(loader, standard_tests, pattern):
7977
test.datetimetester.TestSubclassDateTime('test_replace'), # TODO
8078
test.datetimetester.TestSubclassDateTime('test_strftime_with_bad_tzname_replace'),
8179
test.datetimetester.TestSubclassDateTime('test_subclass_replace'), # TypeError: replace() got an unexpected keyword argument 'year'
82-
test.datetimetester.TestSubclassDateTime('test_timestamp_limits'), # ValueError: The added or subtracted value results in an un-representable DateTime.
8380
test.datetimetester.TestTime('test_backdoor_resistance'), # AssertionError: "^bad tzinfo state arg$" does not match "expected Int32, got bytes"
8481
test.datetimetester.TestTime('test_compat_unpickle'), # TypeError: expected Int32, got str
8582
test.datetimetester.TestTime('test_isoformat'), # TypeError: isoformat() takes no arguments (1 given)
@@ -97,7 +94,13 @@ def load_tests(loader, standard_tests, pattern):
9794
test.datetimetester.ZoneInfoTest('test_system_transitions'), # AttributeError: 'module' object has no attribute 'tzset'
9895
]
9996

100-
return generate_suite(tests, failing_tests)
97+
skip_tests = []
98+
for test_or_suite in tests:
99+
if isinstance(test_or_suite, test.datetimetester.ZoneInfoCompleteTest):
100+
for t in test_or_suite:
101+
skip_tests.append(t)
102+
103+
return generate_suite(tests, failing_tests, skip_tests)
101104

102105
else:
103106
return tests

Tests/test_ssl_stdlib.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ def load_tests(loader, standard_tests, pattern):
1515

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

0 commit comments

Comments
 (0)