Browse Source

[2252] explicitly check if something is None, not just eval it as boolean.

JINMEI Tatuya 12 years ago
parent
commit
30c5683bab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bin/xfrin/tests/xfrin_test.py

+ 1 - 1
src/bin/xfrin/tests/xfrin_test.py

@@ -1076,7 +1076,7 @@ class TestAXFR(TestXfrinConnection):
             c = MockXfrinConnection({}, TEST_ZONE_NAME, RRClass.CH, None,
                                     threading.Event(), info)
             c.init_socket()
-            if ver:
+            if ver is not None:
                 self.assertEqual(ver, c._get_ipver_str())
             else:
                 self.assertRaises(ValueError, c._get_ipver_str)