Commit c095956c authored by Benjamin Peterson's avatar Benjamin Peterson

merge 3.2

parents f3ac50b7 a8d7037e
...@@ -172,7 +172,7 @@ Server Objects ...@@ -172,7 +172,7 @@ Server Objects
.. method:: BaseServer.shutdown() .. method:: BaseServer.shutdown()
Tell the :meth:`serve_forever` loop to stop and waits until it does. Tell the :meth:`serve_forever` loop to stop and wait until it does.
.. attribute:: BaseServer.address_family .. attribute:: BaseServer.address_family
......
...@@ -80,10 +80,10 @@ class SymtableTest(unittest.TestCase): ...@@ -80,10 +80,10 @@ class SymtableTest(unittest.TestCase):
def test_function_info(self): def test_function_info(self):
func = self.spam func = self.spam
self.assertEqual(func.get_parameters(), ("a", "b", "kw", "var")) self.assertEqual(sorted(func.get_parameters()), ["a", "b", "kw", "var"])
self.assertEqual(func.get_locals(), expected = ["a", "b", "internal", "kw", "var", "x"]
("a", "b", "internal", "kw", "var", "x")) self.assertEqual(sorted(func.get_locals()), expected)
self.assertEqual(func.get_globals(), ("bar", "glob")) self.assertEqual(sorted(func.get_globals()), ["bar", "glob"])
self.assertEqual(self.internal.get_frees(), ("x",)) self.assertEqual(self.internal.get_frees(), ("x",))
def test_globals(self): def test_globals(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment