🐛 Bug
Recent Python versions updated the inspect.getsource* mechanism for classes. This breaks many of our JIT tests.
To Reproduce
Run test/test_jit.py on Python 3.9.
Expected behavior
Tests pass.
Environment
Python 3.9
PyTorch master
Additional context
Python bug report: https://bugs.python.org/issue42666
My impression is that it's a case of "Don't do that then".
cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @gmagogsfm
🐛 Bug
Recent Python versions updated the inspect.getsource* mechanism for classes. This breaks many of our JIT tests.
To Reproduce
Run test/test_jit.py on Python 3.9.
Expected behavior
Tests pass.
Environment
Python 3.9
PyTorch master
Additional context
Python bug report: https://bugs.python.org/issue42666
My impression is that it's a case of "Don't do that then".
cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @gmagogsfm