mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-17 19:15:55 +08:00
Make sure that the differences are calculated a bit more reliable, fixes #1429
This commit is contained in:
@@ -77,10 +77,14 @@ class TestSetupReadline(unittest.TestCase):
|
|||||||
# There are minor differences, e.g. the dir doesn't include deleted
|
# There are minor differences, e.g. the dir doesn't include deleted
|
||||||
# items as well as items that are not only available on linux.
|
# items as well as items that are not only available on linux.
|
||||||
difference = set(self.completions(s)).symmetric_difference(goal)
|
difference = set(self.completions(s)).symmetric_difference(goal)
|
||||||
difference = {x for x in difference if not x.startswith('from os import _')}
|
difference = {
|
||||||
|
x for x in difference
|
||||||
|
if all(not x.startswith('from os import ' + s)
|
||||||
|
for s in ['_', 'O_', 'EX_', 'MFD_', 'SF_'])
|
||||||
|
}
|
||||||
# There are quite a few differences, because both Windows and Linux
|
# There are quite a few differences, because both Windows and Linux
|
||||||
# (posix and nt) libraries are included.
|
# (posix and nt) librariesare included.
|
||||||
assert len(difference) < 38
|
assert len(difference) < 20
|
||||||
|
|
||||||
@cwd_at('test')
|
@cwd_at('test')
|
||||||
def test_local_import(self):
|
def test_local_import(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user