8000 Correct name for ticker in EngFormatter test · matplotlib/matplotlib@ca341a5 · GitHub
[go: up one dir, main page]

Skip to content

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 ca341a5

Browse files
committed
Correct name for ticker in EngFormatter test
Sorry, I was using a different name than “mticker” to import the ticker module, and I had forgotten to change it when committing the new unit test test_EngFormatter_formatting()…
1 parent 6f9bf5f commit ca341a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_ticker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,13 +458,13 @@ def test_EngFormatter_formatting():
458458
459459
Should not exception.
460460
"""
461-
unitless = pef.EngFormatter()
461+
unitless = mticker.EngFormatter()
462462
nose.tools.assert_equal(unitless(0.1), u'100 m')
463463
nose.tools.assert_equal(unitless(1), u'1')
464464
nose.tools.assert_equal(unitless(999.9), u'999.9')
465465
nose.tools.assert_equal(unitless(1001), u'1.001 k')
466466

467-
with_unit = pef.EngFormatter(unit=u's')
467+
with_unit = mticker.EngFormatter(unit=u's')
468468
nose.tools.assert_equal(with_unit(0.1), u'100 ms')
469469
nose.tools.assert_equal(with_unit(1), u'1 s')
470470
nose.tools.assert_equal(with_unit(999.9), u'999.9 s')

0 commit comments

Comments
 (0)
0