Skip to content

Commit

Permalink
Merge pull request #1287 from ioam/fix_rgbtest_teardown
Browse files Browse the repository at this point in the history
Add teardown to RGBInterfaceTest
  • Loading branch information
jlstevens authored Apr 12, 2017
2 parents 87b5c9b + 5989869 commit 81c7d8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/testimageinterfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ def setUp(self):
self.eltype.datatype = [self.datatype]
self.init_data()

def tearDown(self):
self.eltype.datatype = self.restore_datatype

def init_data(self):
self.rgb_array = np.random.rand(10, 10, 3)
self.rgb = RGB(self.rgb_array[::-1], bounds=(-10, 0, 10, 10))
Expand Down

0 comments on commit 81c7d8a

Please sign in to comment.