summaryrefslogtreecommitdiffstats
path: root/test/Errors/UserError.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Errors/UserError.py')
-rw-r--r--test/Errors/UserError.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Errors/UserError.py b/test/Errors/UserError.py
index c534ed6..0212a52 100644
--- a/test/Errors/UserError.py
+++ b/test/Errors/UserError.py
@@ -34,7 +34,7 @@ import TestSCons
test = TestSCons.TestSCons(match = TestSCons.match_re_dotall)
test.write('SConstruct', """
-assert not globals().has_key("UserError")
+assert "UserError" not in globals()
import SCons.Errors
raise SCons.Errors.UserError, 'Depends() requires both sources and targets.'
""")