diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-01-03 22:24:39 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-01-03 22:24:39 (GMT) |
commit | a8d7037e32499bc9593c86668ae99f21d9e7d53a (patch) | |
tree | 3160debbd28ea8598ccaaa19fa3d9e9e944a4483 /Lib/test/test_symtable.py | |
parent | 4f616af086701d799ec8c5d06b8ec0e6a3717766 (diff) | |
parent | b462da8c0a5b0d9986b256fd8997f6e28616fb29 (diff) | |
download | cpython-a8d7037e32499bc9593c86668ae99f21d9e7d53a.zip cpython-a8d7037e32499bc9593c86668ae99f21d9e7d53a.tar.gz cpython-a8d7037e32499bc9593c86668ae99f21d9e7d53a.tar.bz2 |
merge 3.1
Diffstat (limited to 'Lib/test/test_symtable.py')
-rw-r--r-- | 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 index 7fb368a..335b4dc 100644 --- a/Lib/test/test_symtable.py +++ b/Lib/test/test_symtable.py @@ -80,10 +80,10 @@ class SymtableTest(unittest.TestCase): 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): |