diff options
author | Steven Knight <knight@baldmt.com> | 2010-04-19 02:28:06 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-04-19 02:28:06 (GMT) |
commit | f1049d9db2e71842802f89b708ba825df304e774 (patch) | |
tree | 17b7ed783aafcd8fdb28147b1bbe621bf4d3f9a4 /src/engine/SCons/MemoizeTests.py | |
parent | 391aabed467e2b5d88c13462851fef981cd8c44d (diff) | |
download | SCons-f1049d9db2e71842802f89b708ba825df304e774.zip SCons-f1049d9db2e71842802f89b708ba825df304e774.tar.gz SCons-f1049d9db2e71842802f89b708ba825df304e774.tar.bz2 |
Remove use of the "new" module from --debug=memoizer support.
Diffstat (limited to 'src/engine/SCons/MemoizeTests.py')
-rw-r--r-- | src/engine/SCons/MemoizeTests.py | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/engine/SCons/MemoizeTests.py b/src/engine/SCons/MemoizeTests.py index b3edf01..ea2096c 100644 --- a/src/engine/SCons/MemoizeTests.py +++ b/src/engine/SCons/MemoizeTests.py @@ -132,12 +132,8 @@ class CountDictTestCase(unittest.TestCase): c = obj.get_memoizer_counter('dict') - if SCons.Memoize.use_metaclass: - assert c.hit == 3, c.hit - assert c.miss == 2, c.miss - else: - assert c.hit == 0, c.hit - assert c.miss == 0, c.miss + assert c.hit == 3, c.hit + assert c.miss == 2, c.miss class CountValueTestCase(unittest.TestCase): @@ -171,12 +167,8 @@ class CountValueTestCase(unittest.TestCase): c = obj.get_memoizer_counter('value') - if SCons.Memoize.use_metaclass: - assert c.hit == 3, c.hit - assert c.miss == 1, c.miss - else: - assert c.hit == 0, c.hit - assert c.miss == 0, c.miss + assert c.hit == 3, c.hit + assert c.miss == 1, c.miss if __name__ == "__main__": |