Summary: | dev-python/coverage-4.5.4 fails test | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alexey <alexey+gentoo> |
Component: | Current packages | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | paolo.pedroni, python, sam |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info
build.log |
Description
Alexey
2019-11-18 08:52:59 UTC
Created attachment 596620 [details]
build.log
The test in question essentially checks whether coverage3 is in PATH when run under python2 (and coverage2 under python3): def test_wrong_alias_doesnt_work(self): # "coverage3" doesn't work on py2 assert sys.version_info[0] in [2, 3] # Let us know when Python 4 is out... badcmd = "coverage%d" % (5 - sys.version_info[0]) out = self.run_command(badcmd) self.assertNotIn("Code coverage for Python", out) If coverage is already installed on the system, then both coverage2 and coverage3 are in /usr/bin/, i.e. exists in PATH and thus the test fails. Solutions I can think of: 1. Unset PATH to only contain the scripts/ directory of the (new) coverage installation. (probably a bad idea) 2. Skip the test (since many tests are already skipped, this seems to be the way to go). Tests are now restricted. |