Replace comparison with None with equality operator

This commit is contained in:
Hugo 2017-11-28 10:31:03 +02:00 committed by Daniele Varrazzo
parent b69457ccdf
commit 955526b200

View File

@ -762,7 +762,7 @@ class DatabaseAPI20Test(unittest.TestCase):
names=cur.fetchall() names=cur.fetchall()
assert len(names) == len(self.samples) assert len(names) == len(self.samples)
s=cur.nextset() s=cur.nextset()
assert s == None,'No more return sets, should return None' assert s is None, 'No more return sets, should return None'
finally: finally:
self.help_nextset_tearDown(cur) self.help_nextset_tearDown(cur)