diff options
author | niemeyer <> | 2003-10-06 05:52:04 +0000 |
---|---|---|
committer | niemeyer <> | 2003-10-06 05:52:04 +0000 |
commit | 97e1925e6dd81bcd33b071c71b76ddb1a26fe016 (patch) | |
tree | b54bcc49c383fc44239e64ace4a19011f1ed2222 /test.py | |
parent | 6b3c20f10574784af6c7fd52fb08a73a67794864 (diff) | |
download | dateutil-97e1925e6dd81bcd33b071c71b76ddb1a26fe016.tar.gz |
Fixed tests to use new tzinfos keyword of parse() function.
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)) |