~ubuntu-branches/ubuntu/precise/python3.2/precise-proposed

« back to all changes in this revision

Viewing changes to Lib/test/test_symtable.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-09 18:40:39 UTC
  • mfrom: (30.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120309184039-j3yk2emxr1plyo21
Tags: 3.2.3~rc1-1
* Python 3.2.3 release candidate 1.
* Update to 20120309 from the 3.2 branch.
* Fix libpython.a symlink. Closes: #660146.
* Build-depend on xauth.
* Run the gdb tests for the debug build only.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
 
81
81
    def test_function_info(self):
82
82
        func = self.spam
83
 
        self.assertEqual(func.get_parameters(), ("a", "b", "kw", "var"))
84
 
        self.assertEqual(func.get_locals(),
85
 
                         ("a", "b", "internal", "kw", "var", "x"))
86
 
        self.assertEqual(func.get_globals(), ("bar", "glob"))
 
83
        self.assertEqual(sorted(func.get_parameters()), ["a", "b", "kw", "var"])
 
84
        expected = ["a", "b", "internal", "kw", "var", "x"]
 
85
        self.assertEqual(sorted(func.get_locals()), expected)
 
86
        self.assertEqual(sorted(func.get_globals()), ["bar", "glob"])
87
87
        self.assertEqual(self.internal.get_frees(), ("x",))
88
88
 
89
89
    def test_globals(self):