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

« back to all changes in this revision

Viewing changes to Lib/test/test_keywordonlyarg.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:
162
162
        self.assertEqual(Example.f(Example(), k1=1, k2=2), (1, 2))
163
163
        self.assertRaises(TypeError, Example.f, k1=1, k2=2)
164
164
 
 
165
    def test_issue13343(self):
 
166
        # The Python compiler must scan all symbols of a function to
 
167
        # determine their scope: global, local, cell...
 
168
        # This was not done for the default values of keyword
 
169
        # arguments in a lambda definition, and the following line
 
170
        # used to fail with a SystemError.
 
171
        lambda *, k1=unittest: None
 
172
 
165
173
def test_main():
166
174
    run_unittest(KeywordOnlyArgTestCase)
167
175