diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-04-03 10:44:11 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-04-03 10:44:11 (GMT) |
commit | 2f7d46fde2f5d4ead858a33bf6511b7fdb437e83 (patch) | |
tree | fffdbedff7d12f2f2d67527b083678ca6eb9f760 /Lib | |
parent | 295359cb61eaaa6920ce5bcaa59cf6cb2c4c6710 (diff) | |
download | cpython-2f7d46fde2f5d4ead858a33bf6511b7fdb437e83.zip cpython-2f7d46fde2f5d4ead858a33bf6511b7fdb437e83.tar.gz cpython-2f7d46fde2f5d4ead858a33bf6511b7fdb437e83.tar.bz2 |
Remove use of skipUnless; this was causing test_structmembers to fail.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_structmembers.py | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/Lib/test/test_structmembers.py b/Lib/test/test_structmembers.py index b8ee6bd..0f9bf4e 100644 --- a/Lib/test/test_structmembers.py +++ b/Lib/test/test_structmembers.py @@ -52,21 +52,21 @@ class ReadWriteTests(unittest.TestCase): ts.T_ULONG = ULONG_MAX self.assertEquals(ts.T_ULONG, ULONG_MAX) - @unittest.skipUnless(hasattr(ts, "T_LONGLONG"), "long long not present") - def test_longlong(self): - ts.T_LONGLONG = LLONG_MAX - self.assertEquals(ts.T_LONGLONG, LLONG_MAX) - ts.T_LONGLONG = LLONG_MIN - self.assertEquals(ts.T_LONGLONG, LLONG_MIN) - - ts.T_ULONGLONG = ULLONG_MAX - self.assertEquals(ts.T_ULONGLONG, ULLONG_MAX) - - ## make sure these will accept a plain int as well as a long - ts.T_LONGLONG = 3 - self.assertEquals(ts.T_LONGLONG, 3) - ts.T_ULONGLONG = 4 - self.assertEquals(ts.T_ULONGLONG, 4) + if hasattr(ts, "T_LONGLONG"): + def test_longlong(self): + ts.T_LONGLONG = LLONG_MAX + self.assertEquals(ts.T_LONGLONG, LLONG_MAX) + ts.T_LONGLONG = LLONG_MIN + self.assertEquals(ts.T_LONGLONG, LLONG_MIN) + + ts.T_ULONGLONG = ULLONG_MAX + self.assertEquals(ts.T_ULONGLONG, ULLONG_MAX) + + ## make sure these will accept a plain int as well as a long + ts.T_LONGLONG = 3 + self.assertEquals(ts.T_LONGLONG, 3) + ts.T_ULONGLONG = 4 + self.assertEquals(ts.T_ULONGLONG, 4) def test_inplace_string(self): self.assertEquals(ts.T_STRING_INPLACE, "hi") |