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 5a40d14

Browse filesBrowse files
committed
Remove redundant unit creation in tests.
1 parent bbf962f commit 5a40d14
Copy full SHA for 5a40d14

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,8 @@ def test_polar_units():
631631
units.register()
632632

633633
pi = np.pi
634-
deg = units.UnitDbl(1.0, "deg")
635-
km = units.UnitDbl(1.0, "km")
634+
deg = units.deg
635+
km = units.km
636636

637637
x1 = [pi/6.0, pi/4.0, pi/3.0, pi/2.0]
638638
x2 = [30.0*deg, 45.0*deg, 60.0*deg, 90.0*deg]

0 commit comments

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