Show More
@@ -82,8 +82,11 b' class Test_magic_run_completer(unittest.TestCase):' | |||
|
82 | 82 | event = MockEvent(u'%run a.py {}'.format(join(self.BASETESTDIR, 'a'))) |
|
83 | 83 | print(repr(event.line)) |
|
84 | 84 | match = set(magic_run_completer(None, event)) |
|
85 | self.assertEqual(match, {join(self.BASETESTDIR, f) for | |
|
86 | f in (u'a.py', u'aao.py', u'aao.txt', u'adir/')}) | |
|
85 | # We specifically use replace here rather than normpath, because | |
|
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 | 91 | class Test_magic_run_completer_nonascii(unittest.TestCase): |
|
89 | 92 | @onlyif_unicode_paths |
General Comments 0
You need to be logged in to leave comments.
Login now