Skip to content

Commit 114691a

Browse files
committed
Fix the Quantity test fixture
1 parent 319d837 commit 114691a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/tests/test_units.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ def to(self, new_units):
2626
else:
2727
return Quantity(self.magnitude, self.units)
2828

29+
def __copy__(self):
30+
return Quantity(self.magnitude, self.units)
31+
2932
def __getattr__(self, attr):
3033
return getattr(self.magnitude, attr)
3134

0 commit comments

Comments
 (0)