summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/UtilTests.py
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2010-06-07 01:03:58 (GMT)
committerGreg Noel <GregNoel@tigris.org>2010-06-07 01:03:58 (GMT)
commit4342bb15a6592e9a29716523902d717aaa841ccc (patch)
tree18ab3ca340a61eae1a313c1f6c6ab91ecde56412 /src/engine/SCons/UtilTests.py
parenta50e413e5dd97a4bb014fcdfdec6050f03de699c (diff)
downloadSCons-4342bb15a6592e9a29716523902d717aaa841ccc.zip
SCons-4342bb15a6592e9a29716523902d717aaa841ccc.tar.gz
SCons-4342bb15a6592e9a29716523902d717aaa841ccc.tar.bz2
For some reason, using the `imp` module to do imports doesn't do quite the
same thing as using the 'import' statement, even though the documentation clearly says that the 'import' statement uses the 'imp' module under the covers. I have no clue why, but there were some cases where it made a difference. The code was changed to using 'imp' to prevent the fixers from trying to convert the old names to the new names, so this changeset uses a different technique to hide the old names.
Diffstat (limited to 'src/engine/SCons/UtilTests.py')
-rw-r--r--src/engine/SCons/UtilTests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/engine/SCons/UtilTests.py b/src/engine/SCons/UtilTests.py
index 2a89509..3f65456 100644
--- a/src/engine/SCons/UtilTests.py
+++ b/src/engine/SCons/UtilTests.py
@@ -207,6 +207,7 @@ class UtilTestCase(unittest.TestCase):
def test_is_Dict(self):
assert is_Dict({})
assert is_Dict(UserDict())
+ assert is_Dict(os.environ)
try:
class mydict(dict):
pass