mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 19:31:10 +00:00
Restore Python 2.5 and 2.6?
(This commit was 'push --force'd)
This commit is contained in:
+1
-1
@@ -3,5 +3,5 @@ python:
|
||||
- "2.7"
|
||||
- "2.6"
|
||||
- "2.5"
|
||||
install: if [ "$(python --version 2>&1)" == "Python 2.5.6" ]; then pip install -r python25-requirements.txt --use-mirrors; fi
|
||||
install: if [ "$(python --version 2>&1)" == "Python 2.5.6" ]; then pip install -r python25-requirements.txt --use-mirrors; fi; if [ "$(python --version 2>&1)" == "Python 2.6.8" ]; then pip install -r python26-requirements.txt --use-mirrors; fi
|
||||
script: python ./setup.py test
|
||||
|
||||
@@ -11,10 +11,20 @@
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import unittest
|
||||
import sys
|
||||
|
||||
atLeastPython27 = sys.hexversion >= 0x02070000
|
||||
|
||||
if atLeastPython27:
|
||||
import unittest
|
||||
else: # pragma no cover
|
||||
import unittest2 as unittest # pragma no cover
|
||||
|
||||
import AllTests
|
||||
|
||||
|
||||
def run():
|
||||
return unittest.main(module=AllTests, argv=["Dummy Script Name"], exit=False).result
|
||||
testLoader = unittest.loader.TestLoader()
|
||||
testRunner = unittest.runner.TextTestRunner(verbosity=1)
|
||||
test = testLoader.loadTestsFromModule(AllTests)
|
||||
return testRunner.run(test)
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
simplejson
|
||||
unittest2
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
unittest2
|
||||
Reference in New Issue
Block a user