We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c025a9 commit 0f23bccCopy full SHA for 0f23bcc
2 files changed
.travis.yml
@@ -29,6 +29,7 @@ matrix:
29
python: "2.7"
30
dist: trusty # trusty required for 2.7
31
install:
32
+ - bash ./kill_python3_tests.sh
33
- pip install -U pip setuptools
34
- pip install -Ur requirements-test.txt --upgrade-strategy eager
35
script: py.test tests/ -v --cov wrapanapi
kill_python3_tests.sh
@@ -0,0 +1,16 @@
1
+#!/bin/bash
2
+
3
+BLACKLISTED_TEST_FILES=test_redfish.py
4
5
+PYTHON_VERSION=$(python -c 'import sys ; print("%d%d"%sys.version_info[0:2])')
6
7
+echo "Python at version $PYTHON_VERSION"
8
+if (( "$PYTHON_VERSION" < "36" ))
9
+then
10
+ echo "Blacklisting files that require at least Python 3.6"
11
+ for F in $BLACKLISTED_TEST_FILES
12
+ do
13
+ echo "tests/$F"
14
+ [[ -f "tests/$F" ]] && mv "tests/$F" "tests/$F.disable"
15
+ done
16
+fi
0 commit comments