def test_argument_handling(self):
    self.assertRaises(SyntaxError, eval, 'lambda a,a:0')
    self.assertRaises(SyntaxError, eval, 'lambda a,a=1:0')
    self.assertRaises(SyntaxError, eval, 'lambda a=1,a=1:0')
    self.assertRaises(SyntaxError, exec, 'def f(a, a): pass')
    self.assertRaises(SyntaxError, exec, 'def f(a = 0, a = 1): pass')
    self.assertRaises(SyntaxError, exec, 'def f(a): global a; a = 1')
def test_argument_handling(self):
    self.assertRaises(SyntaxError, eval, 'lambda a,a:0')
    self.assertRaises(SyntaxError, eval, 'lambda a,a=1:0')
    self.assertRaises(SyntaxError, eval, 'lambda a=1,a=1:0')
    self.assertRaises(SyntaxError, exec, 'def f(a, a): pass')
    self.assertRaises(SyntaxError, exec, 'def f(a = 0, a = 1): pass')
    self.assertRaises(SyntaxError, exec, 'def f(a): global a; a = 1')