Disable golden test for Python versions greater than `3.9`.
Note: Our golden testing tools do not have the capability to use different golden files for different versions of Python, so for now we can just disable this golden test.
# limitations under the License.
import collections
+import sys
from absl.testing import absltest
from absl.testing import parameterized
@@ -65,6 +66,9 @@ class TestCheckEquivalentTypesTest(absltest.TestCase):
class TensorTypeTest(absltest.TestCase):
def test_constructor_argument_normalization_error(self):
+ if ((sys.version_info[0] == 3 and sys.version_info[1] > 9) or
+ sys.version_info[0] > 3):
+ self.skipTest('b/248295968')
with golden.check_raises_traceback(
'constructor_argument_normalization_error.expected', TypeError):
computation_types.TensorType()
