hidden slave
hidden slave

Reputation: 51

vscode run all tests (pytest) fails

Run all tests using pytest in vscode fails with following error

platform linux -- Python 3.6.9, pytest-5.0.1, py-1.8.0, pluggy-0.13.1
rootdir: /workspace
plugins: cov-2.8.1
Fatal Python error: Aborted

Error: TypeError: Cannot read property 'testsuites' of null

I have been trying to fix this error by installing various versions of pytest, but it doesnt seem to work.

Even test discovery fails with following error

Test Discovery failed: 
Error: free(): invalid pointer
Fatal Python error: Aborted

Does anyone know why this happens ?

Thank you

Upvotes: 0

Views: 1076

Answers (1)

hidden slave
hidden slave

Reputation: 51

It turns out there was an error in one of the imports in a test_xxx.py file . After I changed the version of the pip package of the import, it started working again.

Upvotes: 1

Related Questions