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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user