GH-84976: Move Lib/datetime.py to Lib/_pydatetime

This breaks the tests, but we are keeping it as a separate commit so
that the move operation and editing of the moved files are separate, for
a cleaner history.
This commit is contained in:
Paul Ganssle 2023-03-23 10:36:47 -04:00 committed by T. Wouters
parent 8d34031068
commit 65c4a2b326
4 changed files with 14 additions and 5 deletions

View file

@ -39,6 +39,10 @@ except ImportError:
# Needed by test_datetime
import _strptime
try:
import _pydatetime
except ImportError:
pass
#
pickle_loads = {pickle.loads, pickle._loads}
@ -92,7 +96,7 @@ class TestModule(unittest.TestCase):
if '_Fast' in self.__class__.__name__:
self.skipTest('Only run for Pure Python implementation')
dar = datetime_module._divide_and_round
dar = _pydatetime._divide_and_round
self.assertEqual(dar(-10, -3), 3)
self.assertEqual(dar(5, -2), -2)