From faacfb9578193b94e4883cf60a957f455fc052e3 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 5 Nov 2018 00:28:51 +0100 Subject: [PATCH] One test needs to change a bit --- test/test_utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/test_utils.py b/test/test_utils.py index 2b4fd5a2..eebe2b88 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -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):