1
0
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:
Mike Naberezny 2009-04-04 19:14:53 -07:00
parent f128be6e5b
commit 47f5386443
2 changed files with 2 additions and 15 deletions

View File

@ -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)

View File

@ -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