From c074265a59aba02e9af3d0325c6015cf33a20e63 Mon Sep 17 00:00:00 2001 From: Sascha Steinbiss Date: Tue, 17 May 2016 14:52:19 +0100 Subject: [PATCH] make unit tests compatible with Python 2.6 This removes the dependency on assertIsNotNone() which was added in Python 2.7. --- gtpython/tests/test_version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtpython/tests/test_version.py b/gtpython/tests/test_version.py index e62382e2da..2f87234cdf 100644 --- a/gtpython/tests/test_version.py +++ b/gtpython/tests/test_version.py @@ -22,7 +22,7 @@ class VersionTest(unittest.TestCase): def test_has_version(self): - self.assertIsNotNone(gt.__version__) + self.assertNotEqual(gt.__version__, None) if __name__ == "__main__": - unittest.main() \ No newline at end of file + unittest.main()