You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2013/08/01 20:30:19 UTC
[07/22] git commit: Print Python version, change if statement.
Print Python version, change if statement.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/259657f2
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/259657f2
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/259657f2
Branch: refs/heads/0.13.x
Commit: 259657f2372476081695c369bce0875e64b6eb0b
Parents: 67b5934
Author: Tomaz Muraus <to...@apache.org>
Authored: Wed Jul 31 22:38:39 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Thu Aug 1 20:28:48 2013 +0200
----------------------------------------------------------------------
libcloud/utils/py3.py | 5 ++++-
setup.py | 1 +
2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/259657f2/libcloud/utils/py3.py
----------------------------------------------------------------------
diff --git a/libcloud/utils/py3.py b/libcloud/utils/py3.py
index 0d6987d..206324e 100644
--- a/libcloud/utils/py3.py
+++ b/libcloud/utils/py3.py
@@ -146,4 +146,7 @@ if PY25:
return posixpath.curdir
return posixpath.join(*rel_list)
-unittest2_required = not (PY27 or PY3)
+if PY27 or PY3:
+ unittest2_required = False
+else:
+ unittest2_required = True
http://git-wip-us.apache.org/repos/asf/libcloud/blob/259657f2/setup.py
----------------------------------------------------------------------
diff --git a/setup.py b/setup.py
index 1adee5d..fc82122 100644
--- a/setup.py
+++ b/setup.py
@@ -95,6 +95,7 @@ class TestCommand(Command):
import unittest2
unittest2
except ImportError:
+ print('Python version: %s' % (sys.version))
print('Missing "unittest2" library. unittest2 is library is needed '
'to run the tests. You can install it using pip: '
'pip install unittest2')