summaryrefslogtreecommitdiffstats
path: root/test/Variables
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2010-04-17 13:16:00 (GMT)
committerGreg Noel <GregNoel@tigris.org>2010-04-17 13:16:00 (GMT)
commite254cdf344ed0a466661b319dc019f2400ad12f3 (patch)
tree61e16d3edbaa1230dfa20699c4584c87d9b3f725 /test/Variables
parente4b439f4265613556de0124593ac86898d6f52c7 (diff)
downloadSCons-e254cdf344ed0a466661b319dc019f2400ad12f3.zip
SCons-e254cdf344ed0a466661b319dc019f2400ad12f3.tar.gz
SCons-e254cdf344ed0a466661b319dc019f2400ad12f3.tar.bz2
http://scons.tigris.org/issues/show_bug.cgi?id=2345
Fix the 'assignment to True or False' and the '__getitem__ not supported for exception classes' deprecation warnings.
Diffstat (limited to 'test/Variables')
-rw-r--r--test/Variables/BoolVariable.py4
-rw-r--r--test/Variables/PackageVariable.py4
-rw-r--r--test/Variables/help.py4
3 files changed, 6 insertions, 6 deletions
diff --git a/test/Variables/BoolVariable.py b/test/Variables/BoolVariable.py
index 37130c0..e3ebabd 100644
--- a/test/Variables/BoolVariable.py
+++ b/test/Variables/BoolVariable.py
@@ -33,8 +33,8 @@ import os.path
try:
True, False
except NameError:
- True = (0 == 0)
- False = (0 != 0)
+ exec('True = (0 == 0)')
+ exec('False = (0 != 0)')
import TestSCons
diff --git a/test/Variables/PackageVariable.py b/test/Variables/PackageVariable.py
index 6ad7fc1..172d5e4 100644
--- a/test/Variables/PackageVariable.py
+++ b/test/Variables/PackageVariable.py
@@ -33,8 +33,8 @@ import os.path
try:
True, False
except NameError:
- True = (0 == 0)
- False = (0 != 0)
+ exec('True = (0 == 0)')
+ exec('False = (0 != 0)')
import TestSCons
diff --git a/test/Variables/help.py b/test/Variables/help.py
index 0a0a969..6776327 100644
--- a/test/Variables/help.py
+++ b/test/Variables/help.py
@@ -33,8 +33,8 @@ import os.path
try:
True, False
except NameError:
- True = (0 == 0)
- False = (0 != 0)
+ exec('True = (0 == 0)')
+ exec('False = (0 != 0)')
str_True = str(True)
str_False = str(False)