summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_symtable.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-08-20 12:55:31 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-08-20 12:55:31 (GMT)
commitb71caf186a7a3ccc5e3c6d5e23779ef6246ca1d2 (patch)
treeb5716606dfb232891cc6892458f911af96250baf /Lib/test/test_symtable.py
parent768008c6e2939d6bb6d275ba4f146e67bf7a6ab7 (diff)
downloadcpython-b71caf186a7a3ccc5e3c6d5e23779ef6246ca1d2.zip
cpython-b71caf186a7a3ccc5e3c6d5e23779ef6246ca1d2.tar.gz
cpython-b71caf186a7a3ccc5e3c6d5e23779ef6246ca1d2.tar.bz2
revert 65897
Diffstat (limited to 'Lib/test/test_symtable.py')
-rw-r--r--Lib/test/test_symtable.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_symtable.py b/Lib/test/test_symtable.py
index 712eca7..7e0206d 100644
--- a/Lib/test/test_symtable.py
+++ b/Lib/test/test_symtable.py
@@ -80,11 +80,11 @@ 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_parameters(), ("a", "b", "kw", "var"))
self.assertEqual(func.get_locals(),
- {"a", "b", "bar", "glob", "internal", "kw", "var", "x"})
- self.assertEqual(func.get_globals(), {"bar", "glob"})
- self.assertEqual(self.internal.get_frees(), {"x"})
+ ("a", "b", "bar", "glob", "internal", "kw", "var", "x"))
+ self.assertEqual(func.get_globals(), ("bar", "glob"))
+ self.assertEqual(self.internal.get_frees(), ("x",))
def test_globals(self):
self.assertTrue(self.spam.lookup("glob").is_global())
@@ -142,7 +142,7 @@ class SymtableTest(unittest.TestCase):
self.assertEqual(self.Mine.get_name(), "Mine")
def test_class_info(self):
- self.assertEqual(self.Mine.get_methods(), {'a_method'})
+ self.assertEqual(self.Mine.get_methods(), ('a_method',))
def test_filename_correct(self):
### Bug tickler: SyntaxError file name correct whether error raised