Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad3e27a commit d9b25bbCopy full SHA for d9b25bb
1 file changed
Lib/test/test_tracemalloc.py
@@ -671,15 +671,13 @@ def fnmatch(filename, pattern):
671
self.assertTrue(fnmatch('aBcDe', 'Ab*dE'))
672
673
self.assertTrue(fnmatch('a.pyc', 'a.PY'))
674
- self.assertTrue(fnmatch('a.PYO', 'a.py'))
675
self.assertTrue(fnmatch('a.py', 'a.PYC'))
676
else:
677
# case sensitive
678
self.assertFalse(fnmatch('aBC', 'ABc'))
679
self.assertFalse(fnmatch('aBcDe', 'Ab*dE'))
680
681
self.assertFalse(fnmatch('a.pyc', 'a.PY'))
682
- self.assertFalse(fnmatch('a.PYO', 'a.py'))
683
self.assertFalse(fnmatch('a.py', 'a.PYC'))
684
685
if os.name == 'nt':
@@ -695,6 +693,9 @@ def fnmatch(filename, pattern):
695
693
self.assertFalse(fnmatch(r'a/b\c', r'a\b/c'))
696
694
self.assertFalse(fnmatch(r'a/b/c', r'a\b\c'))
697
+ # as of 3.5, .pyo is no longer munged to .py
+ self.assertFalse(fnmatch('a.pyo', 'a.py'))
698
+
699
def test_filter_match_trace(self):
700
t1 = (("a.py", 2), ("b.py", 3))
701
t2 = (("b.py", 4), ("b.py", 5))
0 commit comments