Skip to content

testsuite: internal error with coverage 5.0.X #72

@thmo

Description

@thmo

Running the testsuite with coverage 5.0.3 yields

platform linux -- Python 3.8.1, pytest-4.6.9, py-1.8.0, pluggy-0.13.0
rootdir: .../textile-4.0.0, inifile: pytest.ini, testpaths: tests
plugins: cov-2.8.1
collected 206 items
[...]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/usr/lib64/python3.8/site-packages/coverage/sqldata.py", line 1046, in execute
INTERNALERROR>     return self.con.execute(sql, parameters)
INTERNALERROR> sqlite3.IntegrityError: UNIQUE constraint failed: meta.key
[...]

According to coveragepy/coveragepy#883 this can be fixed adding this to the .coveragerc file

[run]
parallel = True

In my tests worked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions