Restore Python 2.5 and 2.6?

(This commit was 'push --force'd)
This commit is contained in:
Vincent Jacques
2012-10-28 18:51:06 +01:00
parent 823f25357a
commit c0ccafa7ec
4 changed files with 15 additions and 3 deletions
+12 -2
View File
@@ -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)