Skip to content

Commit f61301d

Browse files
committed
try to avoid not running of 2to3 command if version is too much accurate for travis
1 parent ee78535 commit f61301d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

run_tests_py3.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ cp -r build/lib/SPARQLWrapper build/py3_testing/
3232

3333
cd build/py3_testing
3434

35-
2to3-$PYTHON_VERSION -wn --no-diffs test
35+
if command -v 2to3-$PYTHON_VERSION; then
36+
2to3-$PYTHON_VERSION -wn --no-diffs test
37+
else
38+
2to3 -wn --no-diffs test
39+
fi
3640

3741
sed -i.bak s/urllib2._opener/urllib.request._opener/g test/wrapper_test.py
3842

0 commit comments

Comments
 (0)