Closed s-weigand closed 1 year ago
Base: 93.31% // Head: 93.40% // Increases project coverage by +0.08%
:tada:
Coverage data is based on head (
618e491
) compared to base (4af02f7
). Patch coverage: 100.00% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
@s-weigand Thanks -- I'm not sure why I didn't see that in my tests... Was that with a specific version of numpy? Anyway, thanks!
@s-weigand I don't understand the failure with Python 3.8 and no-numpy. Seems like an error with the testing setup.
@newville That is a very strange bug on the CI, while trying to figure out what is going on I found that either adding -vv
as flag to pytest or running pytest in the repo root fixes the issue.
But I still have no idea what causes it in the first place.
Thanks, yeah it is weird. I'll try to merge and push a new version with this fix in the next few days.
On Fri, Nov 11, 2022 at 7:51 AM Sebastian Weigand @.***> wrote:
@newville https://github.com/newville That is a very strange bug on the CI, while trying to figure out what is going on I found that either adding -vv as flag to pytest https://github.com/s-weigand/asteval/actions/runs/3445417663 or running pytest in the repo root https://github.com/s-weigand/asteval/actions/runs/3445459416/jobs/5749195712 fixes the issue. But I still have no idea what causes it in the first place.
— Reply to this email directly, view it on GitHub https://github.com/newville/asteval/pull/112#issuecomment-1311717959, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACKI66ZF6YJ27JTVKL2ZLLWHZFONANCNFSM6AAAAAAR5DF3IY . You are receiving this because you were mentioned.Message ID: @.***>
--
--Matt Newville
@newville I changed the tests on the CI to invoke pytest with python -m pytest
instead of just pytest
, this also fixes this esoteric bug on python 3.8 and makes it more in line with the calls to pip
.
@s-weigand Thanks very much -- I agree with python -m pytest
being the better approach.
@newville Any news about a new version that incorporates this fix?
@s-weigand sorry, that slipped off my radar screen. Will push out a new version shortly.
@s-weigand 0.9.29 released!
Hi there, I just installed the latest release (
0.9.28
) and found that theNUMPY_RENAMES
values were missing in the symbol list created withmake_symbol_table
which caused a crash when creating anInterpreter
withInterpreter(symtable=make_symbol_table(...))
and using renamed functions likeln
.Turned out to be a little from-to-mixup when checking that the symbol exists in
numpy
since the value and not the key should exists in numpy https://github.com/newville/asteval/blob/4af02f779ea4309f94d763560f522d2f8a794c32/asteval/astutils.py#L183I also added a unitest for the case so a regression can't sneak in easily in the future.