Run RPC JIT tests with variable type hints only in Python >=3.6 (#34284)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34284

Python 3.5 only supports function type hints.
Variable type hints are introduced in Python 3.6.
So these tests with JIT type hints will fail with "Syntax Error" in Python 3.5 environment.

ghstack-source-id: 99542199

Test Plan: `

Differential Revision: D7348891

fbshipit-source-id: c4c71ac021f35b5e6f7ce4d3e6af10dd1d2600cc
This commit is contained in:
Shihao Xu 2020-03-04 18:55:50 -08:00 committed by Facebook Github Bot
parent c62de4286e
commit e2ddf935bb

View file

@ -79,7 +79,6 @@ if PY33:
'distributed/rpc/test_rpc_spawn',
'distributed/rpc/test_dist_autograd_spawn',
'distributed/rpc/test_dist_optimizer_spawn',
'distributed/rpc/jit/test_rpc_spawn',
'distributed/rpc/jit/test_dist_autograd_spawn',
])
@ -88,6 +87,7 @@ if PY36:
TESTS.extend([
'test_jit_py3',
'test_determination',
'distributed/rpc/jit/test_rpc_spawn',
])
WINDOWS_BLACKLIST = [