summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2012-03-25 19:47:19 +0100
committerThomas Kluyver <takowl@gmail.com>2012-03-25 19:47:19 +0100
commit836f16166a473e379d59478e7e26b1cd5a61bcf0 (patch)
treeea9b81d6ff8a29ba5d7904d237eb2e6836b218e3
parentf035aef7468070aa1854086a533d07c488b70a87 (diff)
downloaddateutil-836f16166a473e379d59478e7e26b1cd5a61bcf0.tar.gz
Simplify testing code.
-rwxr-xr-xtest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test.py b/test.py
index 2fb4322..94f1f97 100755
--- a/test.py
+++ b/test.py
@@ -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)