summaryrefslogtreecommitdiffstats
path: root/Lib/test/datetimetester.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-02-20 22:37:36 (GMT)
committerGeorg Brandl <georg@python.org>2012-02-20 22:37:36 (GMT)
commite5a0e0a75f4aec8410092f53abad145565e76d3f (patch)
treec987296ea5c025a40da99dc725e3472036637791 /Lib/test/datetimetester.py
parent09562b43304a91aa323418834e183e7f39101372 (diff)
downloadcpython-e5a0e0a75f4aec8410092f53abad145565e76d3f.zip
cpython-e5a0e0a75f4aec8410092f53abad145565e76d3f.tar.gz
cpython-e5a0e0a75f4aec8410092f53abad145565e76d3f.tar.bz2
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.
Diffstat (limited to 'Lib/test/datetimetester.py')
-rw-r--r--Lib/test/datetimetester.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py
index 38f3b8f..3fd6799 100644
--- a/Lib/test/datetimetester.py
+++ b/Lib/test/datetimetester.py
@@ -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)