Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"from __future__ imports must occur at the beginning of the file" when using --coverage #24

Open
phihos opened this issue Dec 22, 2017 · 0 comments
Assignees
Labels

Comments

@phihos
Copy link
Collaborator

phihos commented Dec 22, 2017

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.

@phihos phihos added the bug label Dec 22, 2017
@phihos phihos self-assigned this Dec 22, 2017
b-price pushed a commit to b-price/mojomutpy that referenced this issue Mar 14, 2024
Make number_mutation more robust to different float formats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant