Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ end
@test s[1:2] == "ab"
@test s[1:2:end] == "aaaab"
end

@testitem "seval" begin
m = Py(Main)
@test m.seval("1 + 1") === 2 # Basic behavior
@test m.seval("1 + 1\n ") === 2 # Trailing whitespace
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you move the test to

@testitem "module" begin
please?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also these tests are failing because m.seval(...) returns a Py.