elastic / apm-integration-testing

APM Integration Testing
Apache License 2.0
54 stars 68 forks source link

python 3.10 causes some issues when running the tests #1544

Closed v1v closed 1 year ago

v1v commented 1 year ago
  File "/tmp/venv-1720/lib/python3.10/site-packages/_pytest/assertion/rewrite.py", line 143, in exec_module
    source_stat, co = _rewrite_test(fn, self.config)
  File "/tmp/venv-1720/lib/python3.10/site-packages/_pytest/assertion/rewrite.py", line 330, in _rewrite_test
    co = compile(tree, fn, "exec", dont_inherit=True)
TypeError: required field "lineno" missing from alias

As per https://github.com/pytest-dev/pytest/discussions/9195 let's bump the versions