summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorniemeyer <>2003-10-06 05:52:04 +0000
committerniemeyer <>2003-10-06 05:52:04 +0000
commit97e1925e6dd81bcd33b071c71b76ddb1a26fe016 (patch)
treeb54bcc49c383fc44239e64ace4a19011f1ed2222 /test.py
parent6b3c20f10574784af6c7fd52fb08a73a67794864 (diff)
downloaddateutil-97e1925e6dd81bcd33b071c71b76ddb1a26fe016.tar.gz
Fixed tests to use new tzinfos keyword of parse() function.
Diffstat (limited to 'test.py')
-rw-r--r--test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test.py b/test.py
index 4f1e66c..9a5e0dd 100644
--- a/test.py
+++ b/test.py
@@ -140,19 +140,19 @@ class RelativeDeltaTest(unittest.TestCase):
class ParserTest(unittest.TestCase):
def setUp(self):
- self.tzoffsets = {"BRST": -10800}
+ self.tzinfos = {"BRST": -10800}
self.brsttz = tzoffset("BRST", -10800)
self.default = datetime(2003, 9, 25)
def testDateCommandFormat(self):
self.assertEqual(parse("Thu Sep 25 10:36:28 BRST 2003",
- tzoffsets=self.tzoffsets),
+ tzinfos=self.tzinfos),
datetime(2003, 9, 25, 10, 36, 28,
tzinfo=self.brsttz))
def testDateCommandFormatReversed(self):
self.assertEqual(parse("2003 10:36:28 BRST 25 Sep Thu",
- tzoffsets=self.tzoffsets),
+ tzinfos=self.tzinfos),
datetime(2003, 9, 25, 10, 36, 28,
tzinfo=self.brsttz))