You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the --coverage option with a source file with a __future__ import statement at the top the following error occurrs: SyntaxError: from __future__ imports must occur at the beginning of the file.
The CoverageNodeTransformer from coverage.py seems to be the culprit by inserting statements before the import statement.
A resolution could be to start measuring coverage after __future__ imports.
The text was updated successfully, but these errors were encountered:
When using the --coverage option with a source file with a __future__ import statement at the top the following error occurrs:
SyntaxError: from __future__ imports must occur at the beginning of the file
.The
CoverageNodeTransformer
from coverage.py seems to be the culprit by inserting statements before the import statement.A resolution could be to start measuring coverage after __future__ imports.
The text was updated successfully, but these errors were encountered: