diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-11 12:43:18 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-11 12:43:18 (GMT) |
| commit | 8114f21668fe9775d2542d079c6396a745f4f094 (patch) | |
| tree | 62ef9087e76229ea0fd18d0a1052abd79c9ae2f3 /Lib/test/test_support.py | |
| parent | 0a7b8596c075b3d69e2fae3c71746415ba3bad39 (diff) | |
| parent | 8b58339eb2939da4df822f7ea457b44e120fad45 (diff) | |
| download | cpython-8114f21668fe9775d2542d079c6396a745f4f094.zip cpython-8114f21668fe9775d2542d079c6396a745f4f094.tar.gz cpython-8114f21668fe9775d2542d079c6396a745f4f094.tar.bz2 | |
Issue #28512: Fixed setting the offset attribute of SyntaxError by
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
Diffstat (limited to 'Lib/test/test_support.py')
| -rw-r--r-- | Lib/test/test_support.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 553822b..e83a4d6 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -240,7 +240,7 @@ class TestSupport(unittest.TestCase): self.assertEqual(cm.exception.errno, errno.EBADF) def test_check_syntax_error(self): - support.check_syntax_error(self, "def class") + support.check_syntax_error(self, "def class", lineno=1, offset=9) with self.assertRaises(AssertionError): support.check_syntax_error(self, "x=1") |
