• Kirill Smelkov's avatar
    golang: tests: Silence inspect deprecation warning · 45f4df9e
    Kirill Smelkov authored
    Every time tests are run under Python3 the following warnings are printed:
    
      golang/golang_test.py::test_func
        .../golang/golang_test.py:990: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
          assert inspect.formatargspec(*inspect.getargspec(MyClass.zzz)) == '(self, v, x=2, **kkkkwww)'
    
      golang/golang_test.py::test_func
        .../golang/golang_test.py:990: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
          assert inspect.formatargspec(*inspect.getargspec(MyClass.zzz)) == '(self, v, x=2, **kkkkwww)'
    
    However since we are not going to drop Python2 support soon, and there is no
    reffered "use-instead" functionality on Python2, let's simply silence the
    warning for now.
    45f4df9e
Name
Last commit
Last update
3rdparty/include/linux Loading commit data...
golang Loading commit data...
gpython Loading commit data...
.gitignore Loading commit data...
CHANGELOG.rst Loading commit data...
COPYING Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
pyproject.toml Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...
trun Loading commit data...