summaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/enum_test.py
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-12-01 21:26:20 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-12-01 21:31:09 -0300
commit3c433205280de89d4d7709dfb29426492fdbdbe6 (patch)
treeffd68b0fefae3ec2a2207380b8f9bfbac5448dc5 /tests/samplebinding/enum_test.py
parent9fdba4372215c5fe243eacf8ca10ce51904b5d69 (diff)
downloadshiboken-3c433205280de89d4d7709dfb29426492fdbdbe6.tar.gz
shiboken-3c433205280de89d4d7709dfb29426492fdbdbe6.tar.xz
shiboken-3c433205280de89d4d7709dfb29426492fdbdbe6.zip
Removed all undue usage of lambda with assertRaises on unit tests.
Reviewed by Lauro Neto <lauro.neto@openbossa.org>
Diffstat (limited to 'tests/samplebinding/enum_test.py')
-rwxr-xr-xtests/samplebinding/enum_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/samplebinding/enum_test.py b/tests/samplebinding/enum_test.py
index d146db42..e282cdc9 100755
--- a/tests/samplebinding/enum_test.py
+++ b/tests/samplebinding/enum_test.py
@@ -36,11 +36,11 @@ class EnumTest(unittest.TestCase):
def testPassingIntegerOnEnumArgument(self):
'''Tries to use an integer in place of an enum argument.'''
- self.assertRaises(TypeError, lambda : SampleNamespace.getNumber(1))
+ self.assertRaises(TypeError, SampleNamespace.getNumber, 1)
def testExtendingNonExtensibleEnum(self):
'''Tries to create a new enum item for an unextensible enum.'''
- self.assertRaises(TypeError, lambda : SampleNamespace.InValue(13))
+ self.assertRaises(TypeError, SampleNamespace.InValue, 13)
def testEnumConversionToAndFromPython(self):
'''Conversion of enum objects from Python to C++ back again.'''