Fixing api_compatibility_test for python 3.8 by adding special-case handling
PiperOrigin-RevId: 298685203 Change-Id: I454df7704215938833618a1d6deb2d72ca61767b
This commit is contained in:
parent
0bca737acd
commit
edbeede072
@ -46,7 +46,8 @@ _CORNER_CASES = {
|
|||||||
'message': {}
|
'message': {}
|
||||||
},
|
},
|
||||||
'train.LooperThread': {
|
'train.LooperThread': {
|
||||||
'join': {}
|
'join': {},
|
||||||
|
'native_id': {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,6 +95,10 @@ else:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
if sys.version_info.major == 3 and sys.version_info.minor >= 8:
|
||||||
|
_NORMALIZE_TYPE["<class '_collections._tuplegetter'>"] = "<type 'property'>"
|
||||||
|
|
||||||
|
|
||||||
def _NormalizeType(ty):
|
def _NormalizeType(ty):
|
||||||
return _NORMALIZE_TYPE.get(ty, ty)
|
return _NORMALIZE_TYPE.get(ty, ty)
|
||||||
|
|
||||||
|
@ -28,7 +28,6 @@ py_test(
|
|||||||
python_version = "PY3",
|
python_version = "PY3",
|
||||||
srcs_version = "PY2AND3",
|
srcs_version = "PY2AND3",
|
||||||
tags = [
|
tags = [
|
||||||
"no_oss_py38",
|
|
||||||
"no_pip",
|
"no_pip",
|
||||||
"no_rocm",
|
"no_rocm",
|
||||||
"no_windows", # Bugs due to some paths.
|
"no_windows", # Bugs due to some paths.
|
||||||
|
Loading…
Reference in New Issue
Block a user