Blame SOURCES/versiontools-1.9.1-py34-tests.patch

828905
--- versiontools/tests.py.orig	2015-05-27 16:53:42.497134369 -0500
828905
+++ versiontools/tests.py	2015-05-27 17:04:26.721049909 -0500
828905
@@ -23,7 +23,7 @@
828905
 from unittest import TestCase
828905
 
828905
 from versiontools import Version
828905
-from versiontools.setuptools_hooks import version as handle_version 
828905
+from versiontools.setuptools_hooks import version as handle_version
828905
 
828905
 
828905
 class VersionFormattingTests(TestCase):
828905
@@ -134,8 +134,12 @@
828905
         except Exception:
828905
             e = sys.exc_info()[1]
828905
             self.assertTrue(isinstance(e, DistutilsSetupError))
828905
-            self.assertEqual(str(e), "Unable to import 'nonexisting': "
828905
-                                      "No module named nonexisting")
828905
+            if sys.version_info[:1] < (3,):
828905
+                self.assertEqual(str(e), "Unable to import 'nonexisting': "
828905
+                                        "No module named nonexisting")
828905
+            else:
828905
+                self.assertEqual(str(e), "Unable to import 'nonexisting': "
828905
+                                        "No module named 'nonexisting'")
828905
 
828905
     def test_not_found(self):
828905
         version = ':versiontools:versiontools:__nonexisting__'