Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0081c89

Browse files
appleapple
authored andcommitted
Rename test functions to use deregister_scale
1 parent d56e2ef commit 0081c89

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/tests/test_scale.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ def test_val_in_range_base_fallback():
435435
assert s.val_in_range(-np.inf) is False
436436

437437

438-
def test_unregister_scale():
438+
def test_deregister_scale():
439439
"""Test that unregister_scale removes a scale correctly."""
440440
# Register a temporary custom scale
441441
class TempScale(mscale.LinearScale):
@@ -449,7 +449,7 @@ class TempScale(mscale.LinearScale):
449449
assert 'temp_test_scale' not in mscale._scale_mapping
450450

451451

452-
def test_unregister_scale_invalid():
452+
def test_deregister_scale_invalid():
453453
"""Test that unregister_scale raises ValueError for unknown scale."""
454454
with pytest.raises(ValueError, match="not registered"):
455455
mscale.deregister_scale('this_does_not_exist')

0 commit comments

Comments
 (0)