X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/553d59fec08fd9102b21fd0dc83ba708862a6090..71574cbaff3942fd35ceb2754cbfc36449856644:/t/t-convert.py diff --git a/t/t-convert.py b/t/t-convert.py index 08c660f..cadf7b5 100644 --- a/t/t-convert.py +++ b/t/t-convert.py @@ -54,7 +54,7 @@ class TestConvert (U.TestCase): for bad in [lambda x: [x]]: me.assertRaises(TypeError, pow, C.MP(5), bad(2)) me.assertRaises(TypeError, pow, C.MP(5), bad(2), 7) - if not T.DEBUGP: + if not (T.PY2 and T.DEBUGP): ## Debug builds of Python 2 crash here, and it's not our fault. Run ## ## $ python2.7-dbg -c 'pow(long(5), 2, [7])' @@ -84,7 +84,7 @@ class TestConvert (U.TestCase): me.assertRaises(TypeError, pow, bad(5), C.GF(2), bad(7)) me.assertRaises(TypeError, pow, bad(5), bad(2), C.GF(7)) me.assertRaises(TypeError, pow, C.GF(5), bad(2), bad(7)) - if not T.DEBUGP: + if not (T.PY2 and T.DEBUGP): ## Python bug: see above. me.assertRaises(TypeError, pow, C.GF(5), 2, bad(7))