Skip to content

Commit 5510a3c

Browse files
Irina NicolaeIrina Nicolae
authored andcommitted
Remove subtests for python2 compatibility
1 parent dadd093 commit 5510a3c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

art/defences/feature_squeezing_unittest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ def test_ones(self):
1313
x = np.ones((m, n))
1414

1515
for depth in range(1, 50):
16-
with self.subTest("bit depth = {}".format(depth)):
17-
preproc = FeatureSqueezing()
18-
squeezed_x = preproc(x, bit_depth=depth)
19-
self.assertTrue((squeezed_x == 1).all())
16+
preproc = FeatureSqueezing()
17+
squeezed_x = preproc(x, bit_depth=depth)
18+
self.assertTrue((squeezed_x == 1).all())
2019

2120
def test_random(self):
2221
m, n = 1000, 20

0 commit comments

Comments
 (0)