diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-05-13 05:27:01 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-05-13 05:27:01 (GMT) |
commit | d9b25bb511f6d178bbdc533babde92135c9c6ffa (patch) | |
tree | 67db39ce9ac5f31cba991717ffef0a9c1193cb53 | |
parent | ad3e27ae4c2c21d422603eab36c6b48e6e09f732 (diff) | |
download | cpython-d9b25bb511f6d178bbdc533babde92135c9c6ffa.zip cpython-d9b25bb511f6d178bbdc533babde92135c9c6ffa.tar.gz cpython-d9b25bb511f6d178bbdc533babde92135c9c6ffa.tar.bz2 |
Issue #23731: Fix tracemalloc test on Windows.
'a.pyo' can no longer match 'a.py', so 'a.PYO' can't either.
-rw-r--r-- | Lib/test/test_tracemalloc.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_tracemalloc.py b/Lib/test/test_tracemalloc.py index 5ddc879..f65e361 100644 --- a/Lib/test/test_tracemalloc.py +++ b/Lib/test/test_tracemalloc.py @@ -671,7 +671,6 @@ class TestFilters(unittest.TestCase): self.assertTrue(fnmatch('aBcDe', 'Ab*dE')) self.assertTrue(fnmatch('a.pyc', 'a.PY')) - self.assertTrue(fnmatch('a.PYO', 'a.py')) self.assertTrue(fnmatch('a.py', 'a.PYC')) else: # case sensitive @@ -679,7 +678,6 @@ class TestFilters(unittest.TestCase): self.assertFalse(fnmatch('aBcDe', 'Ab*dE')) self.assertFalse(fnmatch('a.pyc', 'a.PY')) - self.assertFalse(fnmatch('a.PYO', 'a.py')) self.assertFalse(fnmatch('a.py', 'a.PYC')) if os.name == 'nt': @@ -695,6 +693,9 @@ class TestFilters(unittest.TestCase): self.assertFalse(fnmatch(r'a/b\c', r'a\b/c')) self.assertFalse(fnmatch(r'a/b/c', r'a\b\c')) + # as of 3.5, .pyo is no longer munged to .py + self.assertFalse(fnmatch('a.pyo', 'a.py')) + def test_filter_match_trace(self): t1 = (("a.py", 2), ("b.py", 3)) t2 = (("b.py", 4), ("b.py", 5)) |