diff options
author | Steven Knight <knight@baldmt.com> | 2004-09-21 17:38:54 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-09-21 17:38:54 (GMT) |
commit | 50c6d9c6698a79ec2c0299c61b6ffdd2b27e921b (patch) | |
tree | b49818b9f0745e7613d12de400205d889baa3224 /src/engine/SCons/Scanner/ScannerTests.py | |
parent | e2995450dd47b5e106c16ee5768de7f6964a9408 (diff) | |
download | SCons-50c6d9c6698a79ec2c0299c61b6ffdd2b27e921b.zip SCons-50c6d9c6698a79ec2c0299c61b6ffdd2b27e921b.tar.gz SCons-50c6d9c6698a79ec2c0299c61b6ffdd2b27e921b.tar.bz2 |
Performance optimization when caching include files for a search path. (Eric Frias)
Diffstat (limited to 'src/engine/SCons/Scanner/ScannerTests.py')
-rw-r--r-- | src/engine/SCons/Scanner/ScannerTests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Scanner/ScannerTests.py b/src/engine/SCons/Scanner/ScannerTests.py index a0c6f01..e0c1f58 100644 --- a/src/engine/SCons/Scanner/ScannerTests.py +++ b/src/engine/SCons/Scanner/ScannerTests.py @@ -155,7 +155,7 @@ class BaseTestCase(unittest.TestCase): s = SCons.Scanner.Base(self.func, "Hash") dict = {} dict[s] = 777 - self.failUnless(hash(dict.keys()[0]) == hash(repr(s)), + self.failUnless(hash(dict.keys()[0]) == id(s), "did not hash Scanner base class as expected") def test_scan_check(self): |