Fix EnsureSConsVersion() so it examines the SCons version, not Python version.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sun, 9 May 2004 02:12:43 +0000 (02:12 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sun, 9 May 2004 02:12:43 +0000 (02:12 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@976 fdb21ef1-2011-0410-befe-b5e4ea1792b1

test/EnsureVersion.py

index e670295d7ec41ff68bff4df91a80bbce8ae9d8da..0abe0823084d6b751c29b18ae599db005cfa925b 100644 (file)
@@ -62,6 +62,26 @@ sys.exit(0)
     test.write('SConstruct', """
 import sys
 env = Environment()
+EnsurePythonVersion(0,0)
+env.EnsureSConsVersion(1,0)
+sys.exit(0)
+""")
+
+    test.run(status=2)
+
+    test.write('SConstruct', """
+import sys
+env = Environment()
+EnsurePythonVersion(0,0)
+env.EnsureSConsVersion(2,0)
+sys.exit(0)
+""")
+
+    test.run(status=2)
+
+    test.write('SConstruct', """
+import sys
+env = Environment()
 env.EnsurePythonVersion(0,0)
 EnsureSConsVersion(2000,0)
 sys.exit(0)