Skip to content

Add __test__ attribute to AnyValue class for pytest - #808

Open
oxinabox wants to merge 1 commit into
JuliaPy:mainfrom
oxinabox:patch-2
Open

Add __test__ attribute to AnyValue class for pytest#808
oxinabox wants to merge 1 commit into
JuliaPy:mainfrom
oxinabox:patch-2

Conversation

@oxinabox

Copy link
Copy Markdown
Contributor

I don't entirely understand why this happens.
I think it is some interaction between pytest and the python debugger and it not undestanding python code when that code is not in a .py file.

But running juliacall in the python debugger, excent with it set to only break on User Uncaught Exceptions always breaks like 2-5 times in this code, because it tried to check if it has a __test__ attribute. Which it does not.

Easiest fix is just to add it.
Though it isn't the most satisfying.

I don't entirely understand why this happens.
I think it is some interaction between pytest and the python debugger and it not undestanding python code when that code is not in a `.py` file.

But running juliacall in the python debugger, excent with it set to only break on User Uncaught Exceptions 
always breaks like 2-5 times in this code, because it tried to check if it has a `__test__` attribute.
Which it does not.

Easiest fix is just to add it.
Though it isn't the most satisfying.
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.

1 participant