Closed Bug 1432683 Opened 7 years ago Closed 7 years ago

TypeError: __getnewargs__ should return a tuple, not 'unicode' in testing/mochitest/mach_commands.py

Categories

(Testing :: Mochitest, defect)

Unspecified
macOS
defect
Not set
normal

Tracking

(firefox61 fixed)

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: MattN, Assigned: ahal)

References

Details

Attachments

(2 files)

Attached file Full mach output
In order to workaround bug 1132044 not getting fixed, I added the following to my machrc file: > [test] > format = mach This break `./mach test --verify` and `./mach mochitest --verify` with the following error: > TypeError: __getnewargs__ should return a tuple, not 'unicode' > > File "/mozilla-central/testing/mochitest/mach_commands.py", line 411, in run_mochitest_general > **harness_args) The full output is attached.
Blocks: 1443557
This is happening because when 'mach_commands.py' creates the logger (as opposed to the mochitest harness), the Logger instance is stored in the options dict. Verify mode will then try to deepcopy that instance which fails. The logger args are only used when instantiating a new mochitest runner anyway, so we might as well delete them from the options object after we're done with them.
Assignee: nobody → ahalberstadt
Status: NEW → ASSIGNED
Comment on attachment 8958216 [details] Bug 1432683 - [mochitest] Remove 'log' argument from the main options object, https://reviewboard.mozilla.org/r/227058/#review232936
Attachment #8958216 - Flags: review?(gbrown) → review+
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/be970e4eb5e6 [mochitest] Remove 'log' argument from the main options object, r=gbrown
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: