summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHsiaoming Yang <me@lepture.com>2013-05-24 21:36:09 +0800
committerHsiaoming Yang <me@lepture.com>2013-05-24 21:36:09 +0800
commit792ec98b20fb176e348bd059d42b9b663859aac6 (patch)
treee48563b7105790a41be31cc0380644a3226a62f3
parent86f31769adf3d4d5b896cf4dd561ab3737533d6c (diff)
downloadoauthlib-792ec98b20fb176e348bd059d42b9b663859aac6.tar.gz
only install unittest2 on python 2.6 and 2.7
-rw-r--r--.travis.yml1
-rw-r--r--.travis_install.py5
2 files changed, 6 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 9da7c8c..db8ee13 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,6 +8,7 @@ python:
install:
- pip install nose pycrypto mock
+ - python .travis_install.py
script:
- nosetests -w tests
diff --git a/.travis_install.py b/.travis_install.py
new file mode 100644
index 0000000..a604a0c
--- /dev/null
+++ b/.travis_install.py
@@ -0,0 +1,5 @@
+import sys
+import subprocess
+
+if sys.version_info[0] == 2:
+ subprocess.call(['pip', 'install', 'unittest2'])