Skip to content

Commit 44febe2

Browse files
committed
Fix copy in Python 2
1 parent 0e5c019 commit 44febe2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

astropy/visualization/tests/test_interval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_manual_zero_limit(self):
4141

4242
def test_manual_defaults_with_nan(self):
4343
interval = ManualInterval()
44-
data = self.data.copy()
44+
data = np.copy(self.data)
4545
data[0] = np.nan
4646
vmin, vmax = interval.get_limits(self.data)
4747
np.testing.assert_allclose(vmin, -20)

0 commit comments

Comments
 (0)