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:
Georg Brandl 2012-02-20 23:37:36 +01:00
parent 09562b4330
commit e5a0e0a75f
2 changed files with 23 additions and 19 deletions

View file

@ -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)