Searched refs:assertRaisesSyntaxError (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_keywordonlyarg.py | 38 def assertRaisesSyntaxError(self, codestr): member in KeywordOnlyArgTestCase 44 self.assertRaisesSyntaxError("def f(p, *):\n pass\n") 45 self.assertRaisesSyntaxError("def f(p1, *, p1=100):\n pass\n") 46 self.assertRaisesSyntaxError("def f(p1, *k1, k1=100):\n pass\n") 47 self.assertRaisesSyntaxError("def f(p1, *, k1, k1=100):\n pass\n") 48 self.assertRaisesSyntaxError("def f(p1, *, **k1):\n pass\n") 49 self.assertRaisesSyntaxError("def f(p1, *, k1, **k1):\n pass\n") 50 self.assertRaisesSyntaxError("def f(p1, *, None, **k1):\n pass\n") 51 self.assertRaisesSyntaxError("def f(p, *, (k1, k2), **kw):\n pass\n") 70 self.assertRaisesSyntaxError("f(p, k=1, p2)") [all …]
|
D | test_with.py | 141 def assertRaisesSyntaxError(self, codestr): member in FailureTestCase 147 self.assertRaisesSyntaxError('with mock as None:\n pass') 148 self.assertRaisesSyntaxError( 153 self.assertRaisesSyntaxError('with mock as None,:\n pass') 154 self.assertRaisesSyntaxError( 159 self.assertRaisesSyntaxError(
|
/external/python/cpython2/Lib/test/ |
D | test_with.py | 133 def assertRaisesSyntaxError(self, codestr): member in FailureTestCase 139 self.assertRaisesSyntaxError('with mock as None:\n pass') 140 self.assertRaisesSyntaxError( 145 self.assertRaisesSyntaxError( 150 self.assertRaisesSyntaxError('with mock as None,:\n pass') 151 self.assertRaisesSyntaxError( 156 self.assertRaisesSyntaxError(
|