diff options
author | Thomas Kluyver <takowl@gmail.com> | 2012-03-25 19:47:19 +0100 |
---|---|---|
committer | Thomas Kluyver <takowl@gmail.com> | 2012-03-25 19:47:19 +0100 |
commit | 836f16166a473e379d59478e7e26b1cd5a61bcf0 (patch) | |
tree | ea9b81d6ff8a29ba5d7904d237eb2e6836b218e3 /test.py | |
parent | f035aef7468070aa1854086a533d07c488b70a87 (diff) | |
download | dateutil-836f16166a473e379d59478e7e26b1cd5a61bcf0.tar.gz |
Simplify testing code.
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3928,7 +3928,8 @@ END:VTIMEZONE def testZoneInfoOffsetSignal(self): utc = zoneinfo.gettz("UTC") nyc = zoneinfo.gettz("America/New_York") - self.assertFalse(any([None in [utc, nyc]])) + self.assertNotEqual(utc, None) + self.assertNotEqual(nyc, None) t0 = datetime(2007, 11, 4, 0, 30, tzinfo=nyc) t1 = t0.astimezone(utc) t2 = t1.astimezone(nyc) |