Skip to content

Commit 3cd034a

Browse files
Irina NicolaeIrina Nicolae
authored andcommitted
Remove subtests in smoothing for python2 compat
1 parent 5510a3c commit 3cd034a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

art/defences/spatial_smoothing_unittest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ def test_ones(self):
1414

1515
# Start to test
1616
for window_size in range(1, 20):
17-
with self.subTest("Sliding window size = {}".format(window_size)):
18-
preprocess = SpatialSmoothing()
19-
smoothed_x = preprocess(x, window_size)
20-
self.assertTrue((smoothed_x == 1).all())
17+
preprocess = SpatialSmoothing()
18+
smoothed_x = preprocess(x, window_size)
19+
self.assertTrue((smoothed_x == 1).all())
2120

2221
def test_fix(self):
2322
x = np.array([[[[1], [2], [3]], [[7], [8], [9]], [[4], [5], [6]]]])

0 commit comments

Comments
 (0)