diff options
author | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-06-07 18:48:49 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-06-09 14:16:16 -0300 |
commit | 4e58a45ea523118bef5e746edb7383c799d65a27 (patch) | |
tree | 87cc87a2b1d1b9831ac5fbcc79cad06e264d449b /tests/samplebinding | |
parent | b5e3a03a2f5907fb1cf6673dd0c2c29930f5eb64 (diff) |
Added Converter<T>::checkType.
This method is needed because you can not call Converter<T>::isConvertible inside
a Converter<Y>::isConvertible implementation, otherwise it'll create a 2-step
implicit conversion.
Diffstat (limited to 'tests/samplebinding')
-rwxr-xr-x | tests/samplebinding/reference_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/samplebinding/reference_test.py b/tests/samplebinding/reference_test.py index f00e036e0..0c373ffac 100755 --- 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.assertEqual(None, s) + self.assertNotEqual(None, s) def testMethodThatReceivesConstReference(self): '''Test a method that receives a const reference to an object as argument.''' |