Skip to content

Commit

Permalink
Restore Python 2.5 and 2.6?
Browse files Browse the repository at this point in the history
(This commit was 'push --force'd)
  • Loading branch information
jacquev6 committed Oct 28, 2012
1 parent 823f253 commit c0ccafa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 12 additions & 2 deletions github/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 change: 1 addition & 0 deletions python25-requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
simplejson
unittest2
1 change: 1 addition & 0 deletions python26-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
unittest2

0 comments on commit c0ccafa

Please sign in to comment.