Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / test / Errors / UserError.py
index c534ed603b0e2176a562ae7e4a70fcfadcbeecb5..0212a528ed30d46ae924d9a01991be9ee662aafd 100644 (file)
@@ -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.'
 """)