mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Fix obscure failures of datetime-related tests due to the datetime tests failing to restore the system state completely after testing the pure-Python versions.
This commit is contained in:
parent
09562b4330
commit
e5a0e0a75f
2 changed files with 23 additions and 19 deletions
|
@ -1780,8 +1780,6 @@ class TestDateTime(TestDate):
|
|||
self.assertTrue(abs(from_timestamp - from_now) <= tolerance)
|
||||
|
||||
def test_strptime(self):
|
||||
import _strptime
|
||||
|
||||
string = '2004-12-01 13:02:47.197'
|
||||
format = '%Y-%m-%d %H:%M:%S.%f'
|
||||
expected = _strptime._strptime_datetime(self.theclass, string, format)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue