[Zope3-checkins] CVS: Zope3 - test.py:1.68

Marius Gedminas mgedmin@codeworks.lt
Tue, 22 Jul 2003 04:06:52 -0400


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv6390

Modified Files:
	test.py 
Log Message:
Copied Python version check from z3.py to test.py


=== Zope3/test.py 1.67 => 1.68 ===
--- Zope3/test.py:1.67	Tue Jul  1 10:02:06 2003
+++ Zope3/test.py	Tue Jul 22 04:06:46 2003
@@ -755,6 +755,14 @@
         elif k == '--dir':
             test_dir = v
 
+    if sys.version_info < ( 2,2,3 ):
+	print """\
+	ERROR: Your python version is not supported by Zope3.
+	Zope3 needs either Python2.3 or Python2.2.3 or greater.
+	In particular, Zope3 on Python2.2.2 is a recipe for 
+	pain. You are running:""" + sys.version
+	sys.exit(1)
+
     if gcthresh is not None:
         if gcthresh == 0:
             gc.disable()