diff options
| author | Matthew Suozzo <msuozzo@google.com> | 2021-04-10 16:56:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-10 22:56:28 +0200 |
| commit | 75a06f067bd0a2687312e5f8e78f9075be76ad3a (patch) | |
| tree | a0bb72532b0579b5949a00b620c83049ae803f8c /Lib/test/test_asdl_parser.py | |
| parent | e05a703848473b0365886dcc593cbddc46609f29 (diff) | |
| download | cpython-git-75a06f067bd0a2687312e5f8e78f9075be76ad3a.tar.gz | |
bpo-43798: Add source location attributes to alias (GH-25324)
* Add source location attributes to alias.
* Move alias star construction to pegen helper.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Diffstat (limited to 'Lib/test/test_asdl_parser.py')
| -rw-r--r-- | Lib/test/test_asdl_parser.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_asdl_parser.py b/Lib/test/test_asdl_parser.py index d2c2b51334..2c198a6b8b 100644 --- a/Lib/test/test_asdl_parser.py +++ b/Lib/test/test_asdl_parser.py @@ -62,7 +62,9 @@ class TestAsdlParser(unittest.TestCase): alias = self.types['alias'] self.assertEqual( str(alias), - 'Product([Field(identifier, name), Field(identifier, asname, opt=True)])') + 'Product([Field(identifier, name), Field(identifier, asname, opt=True)], ' + '[Field(int, lineno), Field(int, col_offset), ' + 'Field(int, end_lineno, opt=True), Field(int, end_col_offset, opt=True)])') def test_attributes(self): stmt = self.types['stmt'] |
