Skip to content

Fix generation of units parser/lexer tables.#9662

Merged
bsipocz merged 1 commit into
astropy:masterfrom
mhvk:units-format-generic-fix
Nov 25, 2019
Merged

Fix generation of units parser/lexer tables.#9662
bsipocz merged 1 commit into
astropy:masterfrom
mhvk:units-format-generic-fix

Conversation

@mhvk
Copy link
Copy Markdown
Contributor

@mhvk mhvk commented Nov 24, 2019

Somehow our testing missed that that the addition of strings in a docstring doesn't always work properly (actually, don't know why it seemed to work at all, but it did (EDIT) seems to have - at least, correct tables were generated at some point, and those were propagated...).

Anyway, with this change, the lextab/parsetab get properly generated again. I'll see if I can also device a test in our travis setup that captures this, but since that may be tricky, for now just the fix.

fixes #9659

@mhvk mhvk added units Bug Affects-dev PRs and issues that do not impact an existing Astropy release labels Nov 24, 2019
@mhvk mhvk added this to the v4.0 milestone Nov 24, 2019
@mhvk mhvk requested a review from olebole November 24, 2019 13:59
@mhvk
Copy link
Copy Markdown
Contributor Author

mhvk commented Nov 24, 2019

cc @bsipocz since she may want to merge this quickly to help get 4.0 out.

@olebole
Copy link
Copy Markdown
Member

olebole commented Nov 24, 2019

short note: I'll be able to test this only tomorrow.

Copy link
Copy Markdown
Member

@olebole olebole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that works for me. Thank you!

@mhvk mhvk requested a review from bsipocz November 25, 2019 16:18
@bsipocz bsipocz merged commit 53e87fc into astropy:master Nov 25, 2019
@bsipocz
Copy link
Copy Markdown
Member

bsipocz commented Nov 25, 2019

Thank you @mhvk!

@mhvk mhvk deleted the units-format-generic-fix branch November 25, 2019 20:23
bsipocz added a commit that referenced this pull request Dec 1, 2019
Fix generation of units parser/lexer tables.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Affects-dev PRs and issues that do not impact an existing Astropy release Bug units

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4.0 rc1: Possible circularity when creating ply files

3 participants