aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolaus Schulz <mail@microschulz.de>2012-11-04 23:28:12 +0100
committerNikolaus Schulz <mail@microschulz.de>2012-11-04 23:29:08 +0100
commite1a6028332ac57d309688b395d6afcdaf35900c9 (patch)
tree9d91aa3e2614d433e3c801b2a446fdfbba201070
parent4346bc5815c635ecf5b738ea5e699f13b6c069c4 (diff)
downloadarchivemail-e1a6028332ac57d309688b395d6afcdaf35900c9.tar.gz
archivemail-e1a6028332ac57d309688b395d6afcdaf35900c9.tar.bz2
archivemail-e1a6028332ac57d309688b395d6afcdaf35900c9.zip
test suite: bail out on python versions << 2.4
The test suite uses function that were introduced in Python 2.4 (e.g. set(), sorted()).
-rwxr-xr-xtest_archivemail6
1 files changed, 3 insertions, 3 deletions
diff --git a/test_archivemail b/test_archivemail
index 7bf700f..ed033e2 100755
--- a/test_archivemail
+++ b/test_archivemail
@@ -30,12 +30,12 @@ TODO: add tests for:
import sys
def check_python_version():
- """Abort if we are running on python < v2.3"""
- too_old_error = "This test script requires python version 2.3 or later. " + \
+ """Abort if we are running on python < v2.4"""
+ too_old_error = "This test script requires python version 2.4 or later. " + \
"Your version of python is:\n%s" % sys.version
try:
version = sys.version_info # we might not even have this function! :)
- if (version[0] < 2) or (version[0] == 2 and version[1] < 3):
+ if (version[0] < 2) or (version[0] == 2 and version[1] < 4):
print too_old_error
sys.exit(1)
except AttributeError: