One test needs to change a bit

This commit is contained in:
Dave Halter
2018-11-05 00:28:51 +01:00
parent 26329de5a5
commit faacfb9578

View File

@@ -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):