path: root/tests
diff options
authorKalev Lember <kalev@smartlink.ee>2010-08-04 14:09:14 +0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-08-04 17:10:35 -0300
commit96b70b2d4c22e97dd88924886454e7cfb0172136 (patch)
tree0bb3e74b70d4887bbb6149e77ab6d94c8d358a31 /tests
parent4a73d09fa2480cd6ef84309c0ca7fe295442b472 (diff)
Modified one more test to use assert_(not a == b) instead of assertNotEqual
Similar to 83c272, avoid using assertNotEqual which in Python 2.7 uses the != operator; that operator however is intentionally left undefined in Point class. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org> Reviewed by Renato Araujo <renato.filho@openbossa.org>
Diffstat (limited to 'tests')
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/samplebinding/reference_test.py b/tests/samplebinding/reference_test.py
index 0c373ffa..e754449d 100644
--- a/tests/samplebinding/reference_test.py
+++ b/tests/samplebinding/reference_test.py
@@ -64,7 +64,7 @@ class ReferenceTest(unittest.TestCase):
def testCantSegFaultWhenReceiveNone(self):
'''do not segfault when receiving None as argument.'''
s = Str()
- self.assertNotEqual(None, s)
+ self.assert_(not None == s)
def testMethodThatReceivesConstReference(self):
'''Test a method that receives a const reference to an object as argument.'''