[Python-checkins] r85766 - python/branches/py3k/Lib/test/test_rlcompleter.py
georg.brandl
python-checkins at python.org
Thu Oct 21 09:40:04 CEST 2010
Author: georg.brandl
Date: Thu Oct 21 09:40:03 2010
New Revision: 85766
Log:
#10159: sort completion matches before comparing to dir() result.
Modified:
python/branches/py3k/Lib/test/test_rlcompleter.py
Modified: python/branches/py3k/Lib/test/test_rlcompleter.py
==============================================================================
--- python/branches/py3k/Lib/test/test_rlcompleter.py (original)
+++ python/branches/py3k/Lib/test/test_rlcompleter.py Thu Oct 21 09:40:03 2010
@@ -31,9 +31,9 @@
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'), [])
More information about the Python-checkins
mailing list