From dd98913bc6bb133c8f0e083252fb74180c2469dc Mon Sep 17 00:00:00 2001 From: Zac-HD Date: Fri, 24 Mar 2017 11:51:47 +1100 Subject: [PATCH] Update tests for new repr --- xarray/tests/test_dataarray.py | 2 +- xarray/tests/test_dataset.py | 4 ++-- xarray/tests/test_variable.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index b73ad136438..b7d0d712e65 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -49,7 +49,7 @@ def test_repr(self): other int64 0 Dimensions without coordinates: time Attributes: - foo: bar""") + foo: bar""") self.assertEqual(expected, repr(data_array)) def test_repr_multiindex(self): diff --git a/xarray/tests/test_dataset.py b/xarray/tests/test_dataset.py index 1a9ad527103..002378cd528 100644 --- a/xarray/tests/test_dataset.py +++ b/xarray/tests/test_dataset.py @@ -97,7 +97,7 @@ def test_repr(self): var2 (dim1, dim2) float64 1.162 -1.097 -2.123 1.04 -0.4034 -0.126 ... var3 (dim3, dim1) float64 0.5565 -0.2121 0.4563 1.545 -0.2397 0.1433 ... Attributes: - foo: bar""") % data['dim3'].dtype + foo: bar""") % data['dim3'].dtype actual = '\n'.join(x.rstrip() for x in repr(data).split('\n')) print(actual) self.assertEqual(expected, actual) @@ -183,7 +183,7 @@ def test_unicode_data(self): Data variables: *empty* Attributes: - å: ∑""" % u'ba®') + å: ∑""" % u'ba®') actual = unicode_type(data) self.assertEqual(expected, actual) diff --git a/xarray/tests/test_variable.py b/xarray/tests/test_variable.py index 8cfa5681276..1c59d25c02e 100644 --- a/xarray/tests/test_variable.py +++ b/xarray/tests/test_variable.py @@ -644,7 +644,7 @@ def test_repr(self): array([[1, 2, 3], [4, 5, 6]]) Attributes: - foo: bar + foo: bar """).strip() self.assertEqual(expected, repr(v))