Skip to content

5.10.2: CoverageWarning: Couldn't parse '.../ziptestdata/__init__.py' #279

Description

@mtelka

python -m pytest reports seven coverage warnings, all of them are like these:

/usr/lib/python3.9/vendor-packages/coverage/report.py:114: CoverageWarning: Couldn't parse '$(BUILD_DIR)/31e8e36c-c7d0-4bde-97f1-90d46908e1f4.zip/ziptestdata/__init__.py': No source for code: '$(BUILD_DIR)/31e8e36c-c7d0-4bde-97f1-90d46908e1f4.zip/ziptestdata/__init__.py'. (couldnt-parse)
/usr/lib/python3.9/vendor-packages/coverage/report.py:114: CoverageWarning: Couldn't parse '$(BUILD_DIR)/504d22ce-402b-4720-89a0-a5ea747a31da.zip/ziptestdata/__init__.py': No source for code: '$(BUILD_DIR)/504d22ce-402b-4720-89a0-a5ea747a31da.zip/ziptestdata/__init__.py'. (couldnt-parse)
...

Where the actual directory name is changing with every run. Please note the $(BUILD_DIR) is a manual replacement of full path to make the output above easier to read.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions