Skip to content

Commit 02f9e2b

Browse files
committed
temp-
1 parent dc92ee8 commit 02f9e2b

File tree

5 files changed

+5
-12
lines changed

5 files changed

+5
-12
lines changed

Doc/library/datetime.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,8 +1130,8 @@ Other constructors, all class methods:
11301130
datetime.datetime(2011, 1, 4, 0, 5, 23, 283000)
11311131
>>> datetime.fromisoformat('2011-11-04 00:05:23.283')
11321132
datetime.datetime(2011, 11, 4, 0, 5, 23, 283000)
1133-
# BUG: >>> datetime.fromisoformat('2011-11-04 00:05:23.283123456')
1134-
# datetime.datetime(2011, 11, 4, 0, 5, 23, 283123, nanosecond=456)
1133+
>>> datetime.fromisoformat('2011-11-04 00:05:23.283123456')
1134+
datetime.datetime(2011, 11, 4, 0, 5, 23, 283123, nanosecond=456)
11351135
>>> datetime.fromisoformat('2011-11-04 00:05:23.283+00:00')
11361136
datetime.datetime(2011, 11, 4, 0, 5, 23, 283000, tzinfo=datetime.timezone.utc)
11371137
>>> datetime.fromisoformat('2011-11-04T00:05:23+04:00') # doctest: +NORMALIZE_WHITESPACE
@@ -2069,8 +2069,8 @@ Instance methods:
20692069
>>> dt = time(hour=12, minute=34, second=56, microsecond=123456, nanosecond=789)
20702070
>>> dt.isoformat(timespec='microseconds')
20712071
'12:34:56.000000'
2072-
# BUG: >>> dt.isoformat(timespec='nanoseconds')
2073-
# '12:34:56.123456789'
2072+
>>> dt.isoformat(timespec='nanoseconds')
2073+
'12:34:56.123456789'
20742074

20752075
.. versionchanged:: 3.6
20762076
Added the *timespec* parameter.

Lib/test/test_external_inspection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,6 @@ async def main():
510510
"Test only runs on Linux with process_vm_readv support",
511511
)
512512
def test_async_global_awaited_by(self):
513-
return # BUG
514513
port = find_unused_port()
515514
script = textwrap.dedent(
516515
f"""\

Lib/test/test_plistlib.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,6 @@ def test_load_aware_datetime(self):
860860
@unittest.skipUnless("America/Los_Angeles" in zoneinfo.available_timezones(),
861861
"Can't find timezone datebase")
862862
def test_dump_aware_datetime(self):
863-
return # BUG
864863
dt = datetime.datetime(2345, 6, 7, 8, 9, 10,
865864
tzinfo=zoneinfo.ZoneInfo("America/Los_Angeles"))
866865
for fmt in ALL_FORMATS:
@@ -870,7 +869,6 @@ def test_dump_aware_datetime(self):
870869
self.assertEqual(loaded_dt, dt)
871870

872871
def test_dump_utc_aware_datetime(self):
873-
return # BUG
874872
dt = datetime.datetime(2345, 6, 7, 8, 9, 10, tzinfo=datetime.UTC)
875873
for fmt in ALL_FORMATS:
876874
s = plistlib.dumps(dt, fmt=fmt, aware_datetime=True)
@@ -887,7 +885,6 @@ def test_dump_aware_datetime_without_aware_datetime_option(self):
887885
self.assertIn(b"2345-06-07T08:00:00Z", s)
888886

889887
def test_dump_utc_aware_datetime_without_aware_datetime_option(self):
890-
return # BUG
891888
dt = datetime.datetime(2345, 6, 7, 8, tzinfo=datetime.UTC)
892889
s = plistlib.dumps(dt, fmt=plistlib.FMT_XML, aware_datetime=False)
893890
self.assertIn(b"2345-06-07T08:00:00Z", s)
@@ -1022,7 +1019,6 @@ def test_unsupported(self):
10221019
self.decode(bytes([token]) + b'\x00'*16)
10231020

10241021
def test_invalid_binary(self):
1025-
return # BUG
10261022
for name, data in INVALID_BINARY_PLISTS:
10271023
with self.subTest(name):
10281024
with self.assertRaises(plistlib.InvalidFileException):
@@ -1045,7 +1041,6 @@ def test_dump_aware_datetime_without_aware_datetime_option(self):
10451041
plistlib.dumps(dt, fmt=plistlib.FMT_BINARY, aware_datetime=False)
10461042

10471043
def test_dump_utc_aware_datetime_without_aware_datetime_option(self):
1048-
return # BUG
10491044
dt = datetime.datetime(2345, 6, 7, 8, tzinfo=datetime.UTC)
10501045
msg = "can't subtract offset-naive and offset-aware datetimes"
10511046
with self.assertRaisesRegex(TypeError, msg):

Lib/test/test_zoneinfo/test_zoneinfo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,6 @@ def test_one_zone_dst(self):
631631
self.assertEqual(dt.dst(), DST.dst)
632632

633633
def test_no_tz_str(self):
634-
return # BUG
635634
STD = ZoneOffset("STD", ONE_H, ZERO)
636635
DST = ZoneOffset("DST", 2 * ONE_H, ONE_H)
637636

Modules/_datetimemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2576,7 +2576,7 @@ nanoseconds_to_delta(PyObject *pyns)
25762576
if (d == -1 && PyErr_Occurred()) {
25772577
goto Done;
25782578
}
2579-
result = new_delta(d, s, us, ns_rem, 1); // Ensure normalization
2579+
result = new_delta(d, s, us, ns_rem, 1);
25802580

25812581
Done:
25822582
Py_XDECREF(py_total_us);

0 commit comments

Comments
 (0)