Skip to content

Commit f709a28

Browse files
committed
mark failing tests
1 parent 9c7a9cb commit f709a28

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ env:
1818
CARGO_ARGS: --no-default-features --features stdlib,zlib,importlib,encodings,ssl
1919
# Skip additional tests on Windows. They are checked on Linux and MacOS.
2020
WINDOWS_SKIPS: >-
21+
test_datetime
2122
test_glob
2223
test_importlib
2324
test_io

Lib/test/datetimetester.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,6 +1498,8 @@ def test_strftime(self):
14981498
# bpo-41260: The parameter was named "fmt" in the pure python impl.
14991499
t.strftime(format="%f")
15001500

1501+
# TODO: RUSTPYTHON
1502+
@unittest.expectedFailure
15011503
def test_strftime_trailing_percent(self):
15021504
# bpo-35066: Make sure trailing '%' doesn't cause datetime's strftime to
15031505
# complain. Different libcs have different handling of trailing
@@ -1598,6 +1600,8 @@ def test_pickling(self):
15981600
self.assertEqual(orig, derived)
15991601
self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
16001602

1603+
# TODO: RUSTPYTHON
1604+
@unittest.expectedFailure
16011605
def test_compat_unpickle(self):
16021606
tests = [
16031607
b"cdatetime\ndate\n(S'\\x07\\xdf\\x0b\\x1b'\ntR.",
@@ -2365,6 +2369,8 @@ def test_pickling_subclass_datetime(self):
23652369
self.assertEqual(orig, derived)
23662370
self.assertTrue(isinstance(derived, SubclassDatetime))
23672371

2372+
# TODO: RUSTPYTHON
2373+
@unittest.expectedFailure
23682374
def test_compat_unpickle(self):
23692375
tests = [
23702376
b'cdatetime\ndatetime\n('
@@ -2937,6 +2943,8 @@ def newmeth(self, start):
29372943
self.assertEqual(dt2.newmeth(-7), dt1.year + dt1.month +
29382944
dt1.second - 7)
29392945

2946+
# TODO: RUSTPYTHON
2947+
@unittest.expectedFailure
29402948
def test_subclass_alternate_constructors_datetime(self):
29412949
# Test that alternate constructors call the constructor
29422950
class DateTimeSubclass(self.theclass):
@@ -3635,6 +3643,8 @@ def test_pickling_subclass_time(self):
36353643
self.assertEqual(orig, derived)
36363644
self.assertTrue(isinstance(derived, SubclassTime))
36373645

3646+
# TODO: RUSTPYTHON
3647+
@unittest.expectedFailure
36383648
def test_compat_unpickle(self):
36393649
tests = [
36403650
(b"cdatetime\ntime\n(S'\\x14;\\x10\\x00\\x10\\x00'\ntR.",
@@ -4029,6 +4039,8 @@ def test_pickling(self):
40294039
self.assertEqual(derived.tzname(), 'cookie')
40304040
self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
40314041

4042+
# TODO: RUSTPYTHON
4043+
@unittest.expectedFailure
40324044
def test_compat_unpickle(self):
40334045
tests = [
40344046
b"cdatetime\ntime\n(S'\\x05\\x06\\x07\\x01\\xe2@'\n"
@@ -4481,6 +4493,8 @@ def test_pickling(self):
44814493
self.assertEqual(derived.tzname(), 'cookie')
44824494
self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
44834495

4496+
# TODO: RUSTPYTHON
4497+
@unittest.expectedFailure
44844498
def test_compat_unpickle(self):
44854499
tests = [
44864500
b'cdatetime\ndatetime\n'
@@ -5443,6 +5457,8 @@ def test_bug_1028306(self):
54435457
self.assertEqual(as_datetime, datetime_sc)
54445458
self.assertEqual(datetime_sc, as_datetime)
54455459

5460+
# TODO: RUSTPYTHON
5461+
@unittest.expectedFailure
54465462
def test_extra_attributes(self):
54475463
with self.assertWarns(DeprecationWarning):
54485464
utcnow = datetime.utcnow()

Lib/test/test_datetime.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ def load_tests(loader, tests, pattern):
2020
for modname in ['datetime', '_datetime', '_strptime']:
2121
sys.modules.pop(modname, None)
2222

23-
test_modules = [pure_tests, fast_tests]
24-
test_suffixes = ["_Pure", "_Fast"]
23+
test_modules = [
24+
pure_tests,
25+
# fast_tests # XXX: RUSTPYTHON; not supported yet
26+
]
27+
test_suffixes = [
28+
"_Pure",
29+
# "_Fast" # XXX: RUSTPYTHON; not supported yet
30+
]
2531
# XXX(gb) First run all the _Pure tests, then all the _Fast tests. You might
2632
# not believe this, but in spite of all the sys.modules trickery running a _Pure
2733
# test last will leave a mix of pure and native datetime stuff lying around.

Lib/test/test_http_cookiejar.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,8 @@ def test_ns_parser_special_names(self):
598598
self.assertIn('expires', cookies)
599599
self.assertIn('version', cookies)
600600

601+
# TODO: RUSTPYTHON; need to update http library to remove warnings
602+
@unittest.expectedFailure
601603
def test_expires(self):
602604
# if expires is in future, keep cookie...
603605
c = CookieJar()

0 commit comments

Comments
 (0)