From 81c804e74ce423a758f382d17bf3a661f741150f Mon Sep 17 00:00:00 2001 From: John Evans Date: Wed, 10 Sep 2014 11:21:48 -0400 Subject: [PATCH] Must skip warning tests if version of six is < 1.7. --- glymur/test/test_glymur_warnings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glymur/test/test_glymur_warnings.py b/glymur/test/test_glymur_warnings.py index 07adab7..fc8b3af 100644 --- a/glymur/test/test_glymur_warnings.py +++ b/glymur/test/test_glymur_warnings.py @@ -8,6 +8,7 @@ Test suite for warnings issued by glymur. import os import re import struct +import six import sys import tempfile import unittest @@ -20,6 +21,8 @@ from .fixtures import opj_data_file, OPJ_DATA_ROOT @unittest.skipIf(sys.hexversion < 0x03030000, "assertWarn methods introduced in 3.x") +@unittest.skipIf(re.match('1.[0-6]', six.__version__) is not None, + "Problem with earlier versions of six on python3") @unittest.skipIf(OPJ_DATA_ROOT is None, "OPJ_DATA_ROOT environment variable not set") class TestWarnings(unittest.TestCase):