Skip to content

Commit

Permalink
try to avoid not running of 2to3 command if version is too much accur…
Browse files Browse the repository at this point in the history
…ate for travis
  • Loading branch information
dayures committed May 11, 2018
1 parent ee78535 commit f61301d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion run_tests_py3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ cp -r build/lib/SPARQLWrapper build/py3_testing/

cd build/py3_testing

2to3-$PYTHON_VERSION -wn --no-diffs test
if command -v 2to3-$PYTHON_VERSION; then
2to3-$PYTHON_VERSION -wn --no-diffs test
else
2to3 -wn --no-diffs test
fi

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

Expand Down

0 comments on commit f61301d

Please sign in to comment.