Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1067 #1136

Merged
merged 3 commits into from Jun 18, 2022
Merged

Fixes #1067 #1136

merged 3 commits into from Jun 18, 2022

Conversation

alexvong243f
Copy link
Collaborator

This PR fixes #1067 by enabling pythonic tests in CI, removing .travis.yml and fixing all test failures.

Alex Vong added 3 commits June 17, 2022 17:43
Partly Fixes gnu-octave#1067.

* .github/workflows/main.yml: Add new job "bist-pythonic" and
"doctests-pythonic".
* .travis.yml: Remove it.
Previously, "pycall_sympy__ ('return _ins[0]', [])" evaluates to

--8<---------------cut here---------------start------------->8---
ans = [Python object of type array.array]

  array('d')
--8<---------------cut here---------------end--------------->8---

when using the pythonic interface, causing @sym/subsasgn test
failures.

Partly fixes gnu-octave#1067.

* inst/private/store_vars_in_python.m: Update it.
* inst/pycall_sympy__.m: Add test accordingly.
Follow-up of 4f88cde.

Without this import, some tests using the pythonic interface will fail
with the error "NameError: name 'Str' is not defined".

Partly fixes gnu-octave#1067.

* inst/private/python_ipc_native.m: Fix it.
@alexvong243f alexvong243f changed the title Fixes 1067 Fixes #1067 Jun 18, 2022
# --8<---------------cut here---------------end--------------->8---
# by replacing all occurences of
# "py.collections.Callable" to "py.collections.abc.Callable" and
# "py.collections.Sequence" to "py.collections.abc.Sequence"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess we need some new issue to fix this properly rather than sed'ing around it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Filed #1138

@cbm755
Copy link
Collaborator

cbm755 commented Jun 18, 2022

This looks good to me!

@cbm755 cbm755 merged commit 932e04f into gnu-octave:main Jun 18, 2022
@alexvong243f alexvong243f deleted the fix-1067 branch June 18, 2022 17:01
@alexvong243f
Copy link
Collaborator Author

alexvong243f commented Jun 19, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: enable pythonic tests
2 participants