summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Variables/VariablesTests.py
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2009-03-08 00:51:26 (GMT)
committerGreg Noel <GregNoel@tigris.org>2009-03-08 00:51:26 (GMT)
commit7f380de2d31a8ca288bd8a44a51de8f2867830be (patch)
treebeffc7420a3c8681158aeefa6b82628fa7121aca /src/engine/SCons/Variables/VariablesTests.py
parent4993b28ca2ef767ede531e21450f390683da6b66 (diff)
downloadSCons-7f380de2d31a8ca288bd8a44a51de8f2867830be.zip
SCons-7f380de2d31a8ca288bd8a44a51de8f2867830be.tar.gz
SCons-7f380de2d31a8ca288bd8a44a51de8f2867830be.tar.bz2
Issue 2326, change execfile() to exec ... (FIXED)
Diffstat (limited to 'src/engine/SCons/Variables/VariablesTests.py')
-rw-r--r--src/engine/SCons/Variables/VariablesTests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/engine/SCons/Variables/VariablesTests.py b/src/engine/SCons/Variables/VariablesTests.py
index f1caff7..7f49692 100644
--- a/src/engine/SCons/Variables/VariablesTests.py
+++ b/src/engine/SCons/Variables/VariablesTests.py
@@ -23,7 +23,6 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
-import string
import sys
import unittest
import TestSCons
@@ -54,7 +53,7 @@ def check(key, value, env):
def checkSave(file, expected):
gdict = {}
ldict = {}
- exec string.replace(open(file).read(), '\r', '\n') in gdict, ldict
+ exec open(file, 'rU').read() in gdict, ldict
assert expected == ldict, "%s\n...not equal to...\n%s" % (expected, ldict)
class VariablesTestCase(unittest.TestCase):