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 824f7aa

Browse filesBrowse files
committed
Fix up use of ignore_warnings
1 parent 87f67ca commit 824f7aa
Copy full SHA for 824f7aa

File tree

Expand file treeCollapse file tree

1 file changed

+15
-15
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+15
-15
lines changed

‎sklearn/utils/tests/test_show_versions.py

Copy file name to clipboardExpand all lines: sklearn/utils/tests/test_show_versions.py
+15-15Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@ def test_get_sys_info():
1313
assert 'machine' in sys_info
1414

1515

16-
@ignore_warnings
1716
def test_get_deps_info():
18-
deps_info = _get_deps_info()
17+
with ignore_warnings():
18+
deps_info = _get_deps_info()
1919

20-
assert 'pip' in deps_info
21-
assert 'setuptools' in deps_info
22-
assert 'sklearn' in deps_info
23-
assert 'numpy' in deps_info
24-
assert 'scipy' in deps_info
25-
assert 'Cython' in deps_info
26-
assert 'pandas' in deps_info
20+
assert 'pip' in deps_info
21+
assert 'setuptools' in deps_info
22+
assert 'sklearn' in deps_info
23+
assert 'numpy' in deps_info
24+
assert 'scipy' in deps_info
25+
assert 'Cython' in deps_info
26+
assert 'pandas' in deps_info
2727

2828

29-
@ignore_warnings
3029
def test_show_versions_with_blas(capsys):
31-
show_versions()
32-
out, err = capsys.readouterr()
33-
assert 'python' in out
34-
assert 'numpy' in out
35-
assert 'BLAS' in out
30+
with ignore_warnings():
31+
show_versions()
32+
out, err = capsys.readouterr()
33+
assert 'python' in out
34+
assert 'numpy' in out
35+
assert 'BLAS' in out

0 commit comments

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