diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-04-13 21:29:57 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-04-13 21:29:57 -0400 |
commit | c16198a494de2227e05708cb4ffac4da43dc3779 (patch) | |
tree | 7aa792a5b11f94559a7eaf421a6fe4441bd79bdc /test/test_lru.py | |
parent | 6c5e273c3b36606ac7267b5fe3ec77cb0c47da52 (diff) | |
download | mako-c16198a494de2227e05708cb4ffac4da43dc3779.tar.gz |
- [bug] Cleaned up all the various deprecation/
file warnings when running the tests under
various Pythons with warnings turned on.
[ticket:213]
Diffstat (limited to 'test/test_lru.py')
-rw-r--r-- | test/test_lru.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_lru.py b/test/test_lru.py index cde5601..6152799 100644 --- a/test/test_lru.py +++ b/test/test_lru.py @@ -23,12 +23,12 @@ class LRUTest(unittest.TestCase): l[id] = item(id) # first couple of items should be gone - self.assert_(1 not in l) - self.assert_(2 not in l) + assert 1 not in l + assert 2 not in l # next batch over the threshold of 10 should be present for id in range(11,20): - self.assert_(id in l) + assert id in l l[12] l[15] @@ -38,11 +38,11 @@ class LRUTest(unittest.TestCase): l[26] = item(26) l[27] = item(27) - self.assert_(11 not in l) - self.assert_(13 not in l) + assert 11 not in l + assert 13 not in l for id in (25, 24, 23, 14, 12, 19, 18, 17, 16, 15): - self.assert_(id in l) + assert id in l def _disabled_test_threaded(self): size = 100 |