textile / python-textile

A Python port of Textile, A humane web text generator
Other
68 stars 23 forks source link

testsuite: internal error with coverage 5.0.X #72

Closed thmo closed 4 years ago

thmo commented 4 years ago

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 nedbat/coveragepy#883 this can be fixed adding this to the .coveragerc file

[run]
parallel = True

In my tests worked.

ikirudennis commented 4 years ago

closed by https://github.com/textile/python-textile/commit/f7cca820b17e8eeb9d95cdd9ca9b2c0c26410446