diff options
Diffstat (limited to 'silx/gui/test/test_colors.py')
-rw-r--r-- | silx/gui/test/test_colors.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/silx/gui/test/test_colors.py b/silx/gui/test/test_colors.py index 2f883bc..6e4fc73 100644 --- a/silx/gui/test/test_colors.py +++ b/silx/gui/test/test_colors.py @@ -1,7 +1,7 @@ # coding: utf-8 # /*########################################################################## # -# Copyright (c) 2015-2018 European Synchrotron Radiation Facility +# Copyright (c) 2015-2019 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -226,7 +226,7 @@ class TestObjectAPI(ParametricTestCase): def testCopy(self): """Make sure the copy function is correctly processing """ - colormapObject = Colormap(name='red', + colormapObject = Colormap(name=None, colors=numpy.array([[1., 0., 0.], [0., 1., 0.], [0., 0., 1.]]), @@ -445,7 +445,7 @@ class TestRegisteredLut(unittest.TestCase): def testLut(self): colormap = Colormap("test_8") colors = colormap.getNColors(8) - self.assertEquals(len(colors), 8) + self.assertEqual(len(colors), 8) def testUint8(self): lut = numpy.array([[255, 0, 0], [200, 0, 0], [150, 0, 0]], dtype="uint") |