Show More
@@ -82,8 +82,11 b' class Test_magic_run_completer(unittest.TestCase):' | |||||
82 | event = MockEvent(u'%run a.py {}'.format(join(self.BASETESTDIR, 'a'))) |
|
82 | event = MockEvent(u'%run a.py {}'.format(join(self.BASETESTDIR, 'a'))) | |
83 | print(repr(event.line)) |
|
83 | print(repr(event.line)) | |
84 | match = set(magic_run_completer(None, event)) |
|
84 | match = set(magic_run_completer(None, event)) | |
85 | self.assertEqual(match, {join(self.BASETESTDIR, f) for |
|
85 | # We specifically use replace here rather than normpath, because | |
86 | f in (u'a.py', u'aao.py', u'aao.txt', u'adir/')}) |
|
86 | # at one point there were duplicates 'adir' and 'adir/', and normpath | |
|
87 | # would hide the failure for that. | |||
|
88 | self.assertEqual(match, {join(self.BASETESTDIR, f).replace('\\','/') | |||
|
89 | for f in (u'a.py', u'aao.py', u'aao.txt', u'adir/')}) | |||
87 |
|
90 | |||
88 | class Test_magic_run_completer_nonascii(unittest.TestCase): |
|
91 | class Test_magic_run_completer_nonascii(unittest.TestCase): | |
89 | @onlyif_unicode_paths |
|
92 | @onlyif_unicode_paths |
General Comments 0
You need to be logged in to leave comments.
Login now