Skip to content

Make testCoberturaParser in cmdline.test work on Windows, or skip just this test #2663

Closed
@gvanrossum

Description

@gvanrossum

When you run cmdline.test on Windows you get an error on testCoberturaParser.

  • When lxml is not installed this fails to find the expected output because this test is for the --cobertura-xml-report option which requires lxml, and such options are silently ignored when lxml is not installed.
  • When lxml is installed this fails because the expected output contains some UNIX-specific filenames.

We currently deal with this by skipping all "cmdline" tests in our Windows appveyor.yml, but that's sub-optimal because it means that the command line flags are not tested at all there.

We can either delete the test (but then the feature will probably rot without anyone noticing), or move it to a separate category that is skipped on Windows only (which is more work).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions