Fixing api_compatibility_test for python 3.8 by adding special-case handling

PiperOrigin-RevId: 298685203
Change-Id: I454df7704215938833618a1d6deb2d72ca61767b
This commit is contained in:
Anna R 2020-03-03 13:50:37 -08:00 committed by TensorFlower Gardener
parent 0bca737acd
commit edbeede072
2 changed files with 6 additions and 2 deletions

View File

@ -46,7 +46,8 @@ _CORNER_CASES = {
'message': {}
},
'train.LooperThread': {
'join': {}
'join': {},
'native_id': {}
}
}
@ -94,6 +95,10 @@ else:
return False
if sys.version_info.major == 3 and sys.version_info.minor >= 8:
_NORMALIZE_TYPE["<class '_collections._tuplegetter'>"] = "<type 'property'>"
def _NormalizeType(ty):
return _NORMALIZE_TYPE.get(ty, ty)

View File

@ -28,7 +28,6 @@ py_test(
python_version = "PY3",
srcs_version = "PY2AND3",
tags = [
"no_oss_py38",
"no_pip",
"no_rocm",
"no_windows", # Bugs due to some paths.