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 641c7c8

Browse filesBrowse files
committed
STY: fix style
1 parent 312d638 commit 641c7c8
Copy full SHA for 641c7c8

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+7
-7
lines changed

‎lib/matplotlib/tests/test_cm.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_cm.py
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
import warnings
33
import pytest
44

5+
56
def test_double_register_cmap():
67
with pytest.raises(ValueError):
7-
mcm.register_cmap('viridis', mcm.get_cmap('viridis'))
8+
mcm.register_cmap("viridis", mcm.get_cmap("viridis"))
89

910

1011
def test_register_cmap():
11-
target = 'viridis'[::-1]
12-
mcm.register_cmap(target, mcm.get_cmap('viridis'))
13-
assert mcm.get_cmap(target) is mcm.get_cmap('viridis')
12+
target = "viridis"[::-1]
13+
mcm.register_cmap(target, mcm.get_cmap("viridis"))
14+
assert mcm.get_cmap(target) is mcm.get_cmap("viridis")
1415

1516
with pytest.warns(UserWarning):
16-
mcm.register_cmap(target, mcm.get_cmap('viridis'))
17-
17+
mcm.register_cmap(target, mcm.get_cmap("viridis"))
1818

1919
mcm.unregister_cmap(target)
2020
with pytest.raises(ValueError):
@@ -25,4 +25,4 @@ def test_register_cmap():
2525

2626
def test_unregister_cmap():
2727
with pytest.raises(ValueError):
28-
mcm.unregister_cmap('viridis')
28+
mcm.unregister_cmap("viridis")

0 commit comments

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