Open Bug 1526335 Opened 6 years ago Updated 2 years ago

[mozversion] Fix test_real_binary under Python 3

Categories

(Testing :: Mozbase, enhancement, P3)

Version 3
enhancement

Tracking

(Not tracked)

People

(Reporter: davehunt, Unassigned)

References

Details

Attachments

(1 obsolete file)

Currently test_real_binary in testing/mozbase/mozversion/tests/test_binary.py is being skipped when run on Python 3 because MozbuildObject.from_environment is throwing an ImportError due to StringIO. Fixing this is quite simple, but that's just the start of the rabbit-hole.

Once mozbuild supports Python 3 (or at least the areas touched by the binary fixture in testing/mozbase/moztest/moztest/selftest/fixtures.py we should see this test passing.

I'm raising this bug so we're aware of the reduced coverage on Python 3. Also, it could probably be fixed without wholesale support for Python 3 in mozbuild.

To run this test, use the following command:

PYTEST_ADDOPTS="-k test_real_binary" mach python-test --python 3.5 testing/mozbase/mozversion
Priority: -- → P3
Attachment #9064428 - Attachment is obsolete: true
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: