mirror of
https://github.com/mnaberez/py65.git
synced 2025-02-03 13:30:52 +00:00
Py65 requires at least Python 2.4 now.
This commit is contained in:
parent
f128be6e5b
commit
47f5386443
4
setup.py
4
setup.py
@ -17,8 +17,8 @@ import string
|
||||
version, extra = string.split(sys.version, ' ', 1)
|
||||
maj, minor = string.split(version, '.', 1)
|
||||
|
||||
if not maj[0] >= '2' and minor[0] >= '3':
|
||||
msg = ("Py65 requires Python 2.3 or better, you are attempting to "
|
||||
if not maj[0] >= '2' and minor[0] >= '4':
|
||||
msg = ("Py65 requires Python 2.4 or better, you are attempting to "
|
||||
"install it using version %s. Please install with a "
|
||||
"supported version" % version)
|
||||
|
||||
|
@ -1,14 +1 @@
|
||||
# this is a package
|
||||
from unittest import TestCase
|
||||
def assertTrue(self, value, extra=None):
|
||||
if not value:
|
||||
raise AssertionError(extra)
|
||||
def assertFalse(self, value, extra=None):
|
||||
if value:
|
||||
raise AssertionError(extra)
|
||||
|
||||
if not hasattr(TestCase, 'assertTrue'): # Python 2.3.3
|
||||
TestCase.assertTrue = assertTrue
|
||||
|
||||
if not hasattr(TestCase, 'assertFalse'): # Pytthon 2.3.3
|
||||
TestCase.assertFalse = assertFalse
|
||||
|
Loading…
x
Reference in New Issue
Block a user