Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Used tool to verify datetimetester + test_code_module
  • Loading branch information
terryluan12 authored and youknowone committed Dec 30, 2025
commit 2bfe9612e7f301a91ad0553cf0e7f636c4cd6ece
20 changes: 6 additions & 14 deletions Lib/test/datetimetester.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,6 @@ def test_aware_datetime(self):
self.assertEqual(tz.dst(t),
t.replace(tzinfo=tz).dst())

@unittest.skip('TODO: RUSTPYTHON')
# _pycodecs was deleted
def test_pickle(self):
for tz in self.ACDT, self.EST, timezone.min, timezone.max:
for pickler, unpickler, proto in pickle_choices:
Expand Down Expand Up @@ -1521,8 +1519,7 @@ def test_strftime(self):
# bpo-41260: The parameter was named "fmt" in the pure python impl.
t.strftime(format="%f")

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON
def test_strftime_trailing_percent(self):
# bpo-35066: Make sure trailing '%' doesn't cause datetime's strftime to
# complain. Different libcs have different handling of trailing
Expand Down Expand Up @@ -1623,8 +1620,7 @@ def test_pickling(self):
self.assertEqual(orig, derived)
self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON
def test_compat_unpickle(self):
tests = [
b"cdatetime\ndate\n(S'\\x07\\xdf\\x0b\\x1b'\ntR.",
Expand Down Expand Up @@ -2411,8 +2407,7 @@ def test_pickling_subclass_datetime(self):
self.assertEqual(orig, derived)
self.assertTrue(isinstance(derived, SubclassDatetime))

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON
def test_compat_unpickle(self):
tests = [
b'cdatetime\ndatetime\n('
Expand Down Expand Up @@ -3773,8 +3768,7 @@ def test_pickling_subclass_time(self):
self.assertEqual(orig, derived)
self.assertTrue(isinstance(derived, SubclassTime))

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON
def test_compat_unpickle(self):
tests = [
(b"cdatetime\ntime\n(S'\\x14;\\x10\\x00\\x10\\x00'\ntR.",
Expand Down Expand Up @@ -4192,8 +4186,7 @@ def test_pickling(self):
self.assertEqual(derived.tzname(), 'cookie')
self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON
def test_compat_unpickle(self):
tests = [
b"cdatetime\ntime\n(S'\\x05\\x06\\x07\\x01\\xe2@'\n"
Expand Down Expand Up @@ -4659,8 +4652,7 @@ def test_pickling(self):
self.assertEqual(derived.tzname(), 'cookie')
self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON
def test_compat_unpickle(self):
tests = [
b'cdatetime\ndatetime\n'
Expand Down
3 changes: 1 addition & 2 deletions Lib/test/test_code_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ def test_exit_msg(self):
self.assertEqual(err_msg, ['write', (expected,), {}])


# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON
def test_cause_tb(self):
self.infunc.side_effect = ["raise ValueError('') from AttributeError",
EOFError('Finished')]
Expand Down
Loading