Check for None/NULL before the other types.

This commit is contained in:
Robin Dunn
2017-02-24 16:09:07 -08:00
parent 918a70f5a4
commit 12c03571d2
2 changed files with 20 additions and 4 deletions

View File

@@ -74,6 +74,11 @@ class pgvariant_Tests(wtc.WidgetTestCase):
@unittest.skipIf(not hasattr(pg, 'testPGVariantTypemap'), '')
def test_pgvariant9(self):
d1 = None
d2 = pg.testPGVariantTypemap(d1)
self.assertTrue(d2 is None)
#---------------------------------------------------------------------------