From 58fc5e4711d51a519e4e6de52faf9101dce63f48 Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 28 Nov 2017 10:31:03 +0200 Subject: [PATCH] Replace comparison with None with equality operator --- tests/dbapi20.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dbapi20.py b/tests/dbapi20.py index f707c090..ff98ddc6 100644 --- a/tests/dbapi20.py +++ b/tests/dbapi20.py @@ -762,7 +762,7 @@ class DatabaseAPI20Test(unittest.TestCase): names=cur.fetchall() assert len(names) == len(self.samples) 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: self.help_nextset_tearDown(cur)