Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191)

Fixed also testing the "always" warning filter.
This commit is contained in:
Sergey Fedoseev 2018-07-09 20:25:55 +05:00 committed by Serhiy Storchaka
parent c287545d62
commit b796e7dcdc
6 changed files with 13 additions and 9 deletions

View file

@ -24,7 +24,7 @@ class BasicWrapTestCase(unittest.TestCase):
f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
result = f(self.wrap(1), self.wrap("x"), self.wrap(3), self.wrap(4), self.wrap(5.0), self.wrap(6.0))
self.assertEqual(result, 139)
self.assertTrue(type(result), int)
self.assertIs(type(result), int)
def test_pointers(self):
f = dll._testfunc_p_p