Skip to content

Fixed "test_*_path_exists" + CompilerDirectivesNode#3619

Merged
scoder merged 2 commits intocython:masterfrom
da-woods:test_assert_compiler_directives
May 19, 2020
Merged

Fixed "test_*_path_exists" + CompilerDirectivesNode#3619
scoder merged 2 commits intocython:masterfrom
da-woods:test_assert_compiler_directives

Conversation

@da-woods
Copy link
Contributor

@da-woods da-woods commented May 18, 2020

When test_assert_path_exists or test_fail_if_path_exists was used on a function containing a CompilerDirectivesNode it was inherited by that CompilerDirectivesNode. Therefore you got misleading test failures if the path was in the function but not within that CompilerDirectivesNode.


Specifically this was causing a lot of failures in #3617 because I'd generated a CompilerDirectivesNode around an IndexNode. However, submitting separately since it's a general fix to the test-suite.

da-woods and others added 2 commits May 18, 2020 20:17
When test_assert_path_exists or test_fail_if_path_exists
was used on a function containing a CompilerDirectivesNode
it was inherited by that CompilerDirectivesNode. Therefore
you got misleading test failures if the path was in the
function but not within that CompilerDirectivesNode.
@scoder
Copy link
Contributor

scoder commented May 18, 2020

Interesting catch. Thanks. These really shouldn't get inherited anywhere.

@scoder scoder added this to the 3.0 milestone May 18, 2020
@scoder scoder merged commit 6d83a74 into cython:master May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants