diff options
author | Georg Brandl <georg@python.org> | 2010-10-21 07:40:03 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-10-21 07:40:03 (GMT) |
commit | 50de5f56a9eba0e0da6fb48c22b85ee69daac105 (patch) | |
tree | 3b04bbea1ec8100303bdfbc2b7288a7f5ec91784 /Lib | |
parent | f933e1ab6fdea76973384e38ea95520de422c340 (diff) | |
download | cpython-50de5f56a9eba0e0da6fb48c22b85ee69daac105.zip cpython-50de5f56a9eba0e0da6fb48c22b85ee69daac105.tar.gz cpython-50de5f56a9eba0e0da6fb48c22b85ee69daac105.tar.bz2 |
#10159: sort completion matches before comparing to dir() result.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_rlcompleter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_rlcompleter.py b/Lib/test/test_rlcompleter.py index 29e6a1b..11a7bd2 100644 --- a/Lib/test/test_rlcompleter.py +++ b/Lib/test/test_rlcompleter.py @@ -31,9 +31,9 @@ class TestRlcompleter(unittest.TestCase): def test_global_matches(self): # test with builtins namespace - self.assertEqual(self.stdcompleter.global_matches('di'), + self.assertEqual(sorted(self.stdcompleter.global_matches('di')), [x+'(' for x in dir(builtins) if x.startswith('di')]) - self.assertEqual(self.stdcompleter.global_matches('st'), + self.assertEqual(sorted(self.stdcompleter.global_matches('st')), [x+'(' for x in dir(builtins) if x.startswith('st')]) self.assertEqual(self.stdcompleter.global_matches('akaksajadhak'), []) |