[Python-checkins] cpython (merge 3.1 -> 3.2): merge 3.1
benjamin.peterson
python-checkins at python.org
Tue Jan 3 23:28:54 CET 2012
http://hg.python.org/cpython/rev/a78d7926c35d
changeset: 74254:a78d7926c35d
branch: 3.2
parent: 74250:b4c203ee4306
parent: 74253:fb5707168351
user: Benjamin Peterson <benjamin at python.org>
date: Tue Jan 03 16:24:39 2012 -0600
summary:
merge 3.1
files:
Lib/test/test_symtable.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Lib/test/test_symtable.py b/Lib/test/test_symtable.py
--- a/Lib/test/test_symtable.py
+++ b/Lib/test/test_symtable.py
@@ -80,10 +80,10 @@
def test_function_info(self):
func = self.spam
- self.assertEqual(func.get_parameters(), ("a", "b", "kw", "var"))
- self.assertEqual(func.get_locals(),
- ("a", "b", "internal", "kw", "var", "x"))
- self.assertEqual(func.get_globals(), ("bar", "glob"))
+ self.assertEqual(sorted(func.get_parameters()), ["a", "b", "kw", "var"])
+ expected = ["a", "b", "internal", "kw", "var", "x"]
+ self.assertEqual(sorted(func.get_locals()), expected)
+ self.assertEqual(sorted(func.get_globals()), ["bar", "glob"])
self.assertEqual(self.internal.get_frees(), ("x",))
def test_globals(self):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list