From: stevenknight Date: Sun, 9 May 2004 02:12:43 +0000 (+0000) Subject: Fix EnsureSConsVersion() so it examines the SCons version, not Python version. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=70a1d6a37c205dfa733fe590797dbe782c9574cf;p=scons.git Fix EnsureSConsVersion() so it examines the SCons version, not Python version. git-svn-id: http://scons.tigris.org/svn/scons/trunk@976 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/test/EnsureVersion.py b/test/EnsureVersion.py index e670295d..0abe0823 100644 --- a/test/EnsureVersion.py +++ b/test/EnsureVersion.py @@ -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)