Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(937)

Unified Diff: Lib/test/datetimetester.py

Issue 1824041: Issue #7989: Add pure Python implementation of datetime module to CPython Base URL: http://svn.python.org/view/*checkout*/python/branches/py3k/
Patch Set: Created 13 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/datetime.py ('k') | Lib/test/test_datetime.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Lib/test/datetimetester.py
===================================================================
--- Lib/test/datetimetester.py (revision 82659)
+++ Lib/test/datetimetester.py (working copy)
@@ -11,6 +11,7 @@
from test import support
+import datetime as datetime_module
from datetime import MINYEAR, MAXYEAR
from datetime import timedelta
from datetime import tzinfo
@@ -44,7 +45,7 @@
class TestModule(unittest.TestCase):
def test_constants(self):
- import datetime
+ datetime = datetime_module
self.assertEqual(datetime.MINYEAR, 1)
self.assertEqual(datetime.MAXYEAR, 9999)
@@ -154,7 +155,7 @@
self.assertEqual(str(tz), tz.tzname(None))
def test_repr(self):
- import datetime
+ datetime = datetime_module
for tz in [self.ACDT, self.EST, timezone.utc,
timezone.min, timezone.max]:
# test round-trip
« no previous file with comments | « Lib/datetime.py ('k') | Lib/test/test_datetime.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b