Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit c47bb7e

Browse files
afrozenatorCopybara-Service
authored andcommitted
tf.test.TestCase doesn't have assertLen but parametrized.TestCase does, so use that to fix broken Travis.
PiperOrigin-RevId: 219222144
1 parent 6def2ce commit c47bb7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tensor2tensor/data_generators/problem_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from __future__ import division
2020
from __future__ import print_function
2121

22+
from absl.testing import parameterized # for assertLen
2223
import numpy as np
2324

2425
from tensor2tensor.data_generators import algorithmic
@@ -45,7 +46,7 @@ def assert_tensors_equal(sess, t1, t2, n):
4546
return True
4647

4748

48-
class ProblemTest(tf.test.TestCase):
49+
class ProblemTest(parameterized.TestCase, tf.test.TestCase):
4950

5051
@classmethod
5152
def setUpClass(cls):

0 commit comments

Comments
 (0)