From a35ebe18369e3892d6ca1713a76ecfdacbccd428 Mon Sep 17 00:00:00 2001 From: John Evans Date: Tue, 18 Nov 2014 08:03:34 -0500 Subject: [PATCH] backwards compatibility tests need to be filtered out on some platforms The need to verify the warning means that the python-six issue applies. --- glymur/test/test_opj_suite.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glymur/test/test_opj_suite.py b/glymur/test/test_opj_suite.py index 1dd4026..cf44eaa 100644 --- a/glymur/test/test_opj_suite.py +++ b/glymur/test/test_opj_suite.py @@ -30,6 +30,7 @@ suite. import re import sys import unittest +import warnings import numpy as np @@ -727,6 +728,7 @@ class TestSuite2point1(unittest.TestCase): odata = jp2k[:] np.testing.assert_array_equal(tdata, odata[896:1024, 896:1024]) + @unittest.skipIf(WARNING_INFRASTRUCTURE_ISSUE, WARNING_INFRASTRUCTURE_MSG) def test_NR_DEC_p1_04_j2k_57_decode_0p7_backwards_compatibility(self): """ 0.7.x usage deprecated @@ -744,6 +746,7 @@ class TestSuite2point1(unittest.TestCase): odata = jp2k[:] np.testing.assert_array_equal(tdata, odata[896:1024, 896:1024]) + @unittest.skipIf(WARNING_INFRASTRUCTURE_ISSUE, WARNING_INFRASTRUCTURE_MSG) def test_NR_DEC_p1_04_j2k_58_decode_0p7_backwards_compatibility(self): """ 0.7.x usage deprecated