diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-07-12 08:43:05 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-07-12 08:43:09 +0900 |
commit | 557d90704720834929c00490f628c72234ec2c29 (patch) | |
tree | 53fd1e7ea7725a5ee0e175ce14be8fdc95c9f580 /tests/test_gobject.py | |
parent | 54fae7ae44d06bd920816004a686c1e17751cb54 (diff) | |
download | pygobject2-557d90704720834929c00490f628c72234ec2c29.tar.gz pygobject2-557d90704720834929c00490f628c72234ec2c29.tar.bz2 pygobject2-557d90704720834929c00490f628c72234ec2c29.zip |
Imported Upstream version 3.15.91
Change-Id: I0e654ffd312fd34de3c91db355c4fac8462fd8b8
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'tests/test_gobject.py')
-rw-r--r-- | tests/test_gobject.py | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/tests/test_gobject.py b/tests/test_gobject.py index a88a4bc..6c15e20 100644 --- a/tests/test_gobject.py +++ b/tests/test_gobject.py @@ -60,17 +60,20 @@ class TestGObjectAPI(unittest.TestCase): self.assertLess(GObject.PRIORITY_HIGH, GObject.PRIORITY_DEFAULT) def test_min_max_int(self): - self.assertEqual(GObject.G_MAXINT16, 2 ** 15 - 1) - self.assertEqual(GObject.G_MININT16, -2 ** 15) - self.assertEqual(GObject.G_MAXUINT16, 2 ** 16 - 1) + with warnings.catch_warnings(): + warnings.simplefilter('ignore', PyGIDeprecationWarning) - self.assertEqual(GObject.G_MAXINT32, 2 ** 31 - 1) - self.assertEqual(GObject.G_MININT32, -2 ** 31) - self.assertEqual(GObject.G_MAXUINT32, 2 ** 32 - 1) + self.assertEqual(GObject.G_MAXINT16, 2 ** 15 - 1) + self.assertEqual(GObject.G_MININT16, -2 ** 15) + self.assertEqual(GObject.G_MAXUINT16, 2 ** 16 - 1) - self.assertEqual(GObject.G_MAXINT64, 2 ** 63 - 1) - self.assertEqual(GObject.G_MININT64, -2 ** 63) - self.assertEqual(GObject.G_MAXUINT64, 2 ** 64 - 1) + self.assertEqual(GObject.G_MAXINT32, 2 ** 31 - 1) + self.assertEqual(GObject.G_MININT32, -2 ** 31) + self.assertEqual(GObject.G_MAXUINT32, 2 ** 32 - 1) + + self.assertEqual(GObject.G_MAXINT64, 2 ** 63 - 1) + self.assertEqual(GObject.G_MININT64, -2 ** 63) + self.assertEqual(GObject.G_MAXUINT64, 2 ** 64 - 1) class TestReferenceCounting(unittest.TestCase): |