Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cea96c4

Browse filesBrowse files
MNT: Apply ruff/Pylint rule PLW0129
Asserting on a non-empty string literal will always pass This line of code had been modified by numpy#28214 / b45b614 without any explanation. I believe that's an error as the current asertion is a no-op. So revert to actually test something in this test.
1 parent f18e893 commit cea96c4
Copy full SHA for cea96c4

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎numpy/tests/test_configtool.py

Copy file name to clipboardExpand all lines: numpy/tests/test_configtool.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def test_configtool_version(self):
3131

3232
def test_configtool_cflags(self):
3333
stdout = self.check_numpyconfig('--cflags')
34+
assert stdout.endswith(INCLUDE_DIR)
3435
assert f'-I{os.fspath(INCLUDE_DIR)}'
3536

3637
def test_configtool_pkgconfigdir(self):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.