return code assertion

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-15 11:04:42 -04:00
parent 651b2c53a4
commit f69992e211
+1 -1
View File
@@ -29,7 +29,7 @@ def python_version(path_to_python):
try:
TEMPLATE = 'Python {}.{}.{}'
c = delegator.run([path_to_python,'--version'], block=False)
c.return_code == 0
assert c.return_code == 0
except Exception:
return None