Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(10)

Delta Between Two Patch Sets: Lib/test/test_fnmatch.py

Issue 3055: combined patches from http://bugs.python.org/issue3187 (Closed) SVN Base: http://svn.python.org/view/*checkout*/python/branches/py3k/
Left Patch Set: More complete patch from Victor Created 1 year, 1 month ago , Downloaded from: http://bugs.python.org/file11667/python3_bytes_filename-2.patch
Right Patch Set: One more tweak (fold some long lines) Created 1 year, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 """Test cases for the fnmatch module.""" 1 """Test cases for the fnmatch module."""
2 2
3 from test import support 3 from test import support
4 import unittest 4 import unittest
5 5
6 from fnmatch import fnmatch, fnmatchcase 6 from fnmatch import fnmatch, fnmatchcase
7 7
8 8
9 class FnmatchTestCase(unittest.TestCase): 9 class FnmatchTestCase(unittest.TestCase):
10 def check_match(self, filename, pattern, should_match=1): 10 def check_match(self, filename, pattern, should_match=1):
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 def test_bytes(self): 46 def test_bytes(self):
47 self.check_match(b'test', b'te*') 47 self.check_match(b'test', b'te*')
48 self.check_match(b'test\xff', b'te*\xff') 48 self.check_match(b'test\xff', b'te*\xff')
49 49
50 def test_main(): 50 def test_main():
51 support.run_unittest(FnmatchTestCase) 51 support.run_unittest(FnmatchTestCase)
52 52
53 53
54 if __name__ == "__main__": 54 if __name__ == "__main__":
55 test_main() 55 test_main()
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r483