summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/test/test_basics.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-02-02 15:57:45 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-02-02 15:57:45 (GMT)
commit8d3f130d41d0c3f437f37a18c624955ce8bf65d3 (patch)
tree84d89632ffbc9d3195d4cb43f5d99e782530e6db /Lib/bsddb/test/test_basics.py
parent0ac4d4c82df9c2d629dee9cd388e84b7f08d25fe (diff)
downloadcpython-8d3f130d41d0c3f437f37a18c624955ce8bf65d3.zip
cpython-8d3f130d41d0c3f437f37a18c624955ce8bf65d3.tar.gz
cpython-8d3f130d41d0c3f437f37a18c624955ce8bf65d3.tar.bz2
Fix idioms and a couple of py3k warnings. Patch by Florent Xicluna.
Diffstat (limited to 'Lib/bsddb/test/test_basics.py')
-rw-r--r--Lib/bsddb/test/test_basics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bsddb/test/test_basics.py b/Lib/bsddb/test/test_basics.py
index 5d6ffe3..c5579de 100644
--- a/Lib/bsddb/test/test_basics.py
+++ b/Lib/bsddb/test/test_basics.py
@@ -342,7 +342,7 @@ class BasicTestCase(unittest.TestCase):
else:
if set_raises_error:
self.fail("expected exception")
- if n != None:
+ if n is not None:
self.fail("expected None: %r" % (n,))
rec = c.get_both('0404', self.makeData('0404'))
@@ -356,7 +356,7 @@ class BasicTestCase(unittest.TestCase):
else:
if get_raises_error:
self.fail("expected exception")
- if n != None:
+ if n is not None:
self.fail("expected None: %r" % (n,))
if self.d.get_type() == db.DB_BTREE: