mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 05:54:25 +08:00
One test needs to change a bit
This commit is contained in:
@@ -76,7 +76,11 @@ class TestSetupReadline(unittest.TestCase):
|
||||
goal = {s + el for el in dir(os)}
|
||||
# There are minor differences, e.g. the dir doesn't include deleted
|
||||
# items as well as items that are not only available on linux.
|
||||
assert len(set(self.completions(s)).symmetric_difference(goal)) < 20
|
||||
difference = set(self.completions(s)).symmetric_difference(goal)
|
||||
difference = {x for x in difference if not x.startswith('from os import _')}
|
||||
# There are quite a few differences, because both Windows and Linux
|
||||
# (posix and nt) libraries are included.
|
||||
assert len(difference) < 30
|
||||
|
||||
@cwd_at('test')
|
||||
def test_local_import(self):
|
||||
|
||||
Reference in New Issue
Block a user