Skip to content

Commit bc35aa8

Browse files
authored
Merge pull request #7073 from youknowone/time
update test_time and implement more time module
2 parents a9c98d2 + c4f2329 commit bc35aa8

File tree

4 files changed

+732
-182
lines changed

4 files changed

+732
-182
lines changed

Lib/test/datetimetester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,7 @@ def test_strftime(self):
15191519
# bpo-41260: The parameter was named "fmt" in the pure python impl.
15201520
t.strftime(format="%f")
15211521

1522-
@unittest.expectedFailure # TODO: RUSTPYTHON
1522+
@unittest.expectedFailureIf(sys.platform == "win32", "TODO: RUSTPYTHON; chrono fallback on Windows")
15231523
def test_strftime_trailing_percent(self):
15241524
# bpo-35066: Make sure trailing '%' doesn't cause datetime's strftime to
15251525
# complain. Different libcs have different handling of trailing

Lib/test/test_support.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,6 @@ def test_print_warning(self):
614614
self.check_print_warning("a\nb",
615615
'Warning -- a\nWarning -- b\n')
616616

617-
@unittest.expectedFailureIf(sys.platform != "win32", "TODO: RUSTPYTHON; no has_strftime_extensions yet")
618617
def test_has_strftime_extensions(self):
619618
if sys.platform == "win32":
620619
self.assertFalse(support.has_strftime_extensions)

0 commit comments

Comments
 (0)