From bfa4dba15485b4192f8bbe13345e9658c97ecf76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Picca=20Fr=C3=A9d=C3=A9ric-Emmanuel?= Date: Sat, 7 Oct 2017 07:59:01 +0200 Subject: New upstream version 0.6.0+dfsg --- silx/math/test/test_HistogramndLut_nominal.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'silx/math/test/test_HistogramndLut_nominal.py') diff --git a/silx/math/test/test_HistogramndLut_nominal.py b/silx/math/test/test_HistogramndLut_nominal.py index 9c356bd..9450326 100644 --- a/silx/math/test/test_HistogramndLut_nominal.py +++ b/silx/math/test/test_HistogramndLut_nominal.py @@ -536,6 +536,21 @@ class _TestHistogramndLut_nominal(unittest.TestCase): self.assertTrue(np.array_equal(histo, expected_h)) self.assertTrue(np.array_equal(w_histo, expected_c)) + def testNoneNativeTypes(self): + type = self.sample.dtype.newbyteorder("B") + sampleB = self.sample.astype(type) + + type = self.sample.dtype.newbyteorder("L") + sampleL = self.sample.astype(type) + + histo_inst = HistogramndLut(sampleB, + self.histo_range, + self.n_bins) + + histo_inst = HistogramndLut(sampleL, + self.histo_range, + self.n_bins) + class TestHistogramndLut_nominal_1d(_TestHistogramndLut_nominal): ndims = 1 -- cgit v1.2.3