summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-01-03 22:26:34 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-01-03 22:26:34 (GMT)
commitc095956ca58b25fe2a4929de538e2eaf1a609852 (patch)
tree7fb90af54294cea112febc7d1079f1858a62e91b
parentf3ac50b778a8068f518804eda0f8966f7cabc1e1 (diff)
parenta8d7037e32499bc9593c86668ae99f21d9e7d53a (diff)
downloadcpython-c095956ca58b25fe2a4929de538e2eaf1a609852.zip
cpython-c095956ca58b25fe2a4929de538e2eaf1a609852.tar.gz
cpython-c095956ca58b25fe2a4929de538e2eaf1a609852.tar.bz2
merge 3.2
-rw-r--r--Doc/library/socketserver.rst2
-rw-r--r--Lib/test/test_symtable.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/socketserver.rst b/Doc/library/socketserver.rst
index 091af03..c7bc0d5 100644
--- a/Doc/library/socketserver.rst
+++ b/Doc/library/socketserver.rst
@@ -172,7 +172,7 @@ Server Objects
.. 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
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):