TypeError: environment can only contain strings
Categories
(Testing :: web-platform-tests, defect, P2)
Tracking
(firefox74 fixed)
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: birtles, Assigned: jgraham)
References
Details
Attachments
(2 files)
Running ./mach wpt ...
on Windows gives me TypeError: environment can only contain strings
but it previously used to work. Log attached.
Being on Japanese Windows it's entirely possible I have some non-Latin characters in environment variables but I don't see which ones yet.
Bug 1603557 describes some similar circumstances.
Perhaps certutil
needs to use env=ensure_subprocess_env(env)
?
I'm not entirely sure if this is a regression or not since although it used to work, it's possible it's my environment that has changed.
I'm going to switch to writing a Gecko-specific crashtest for now and update to a wpt crashtest later once I can get this to run.
Assignee | ||
Comment 1•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
I ported the ensure_subprocess_env
function to wpt; can you test if it actually solves the issue for you?
Reporter | ||
Comment 3•5 years ago
|
||
(In reply to James Graham [:jgraham] from comment #2)
I ported the
ensure_subprocess_env
function to wpt; can you test if it actually solves the issue for you?
Yes, that works! Thank you!
Comment 8•5 years ago
|
||
bugherder |
Assignee | ||
Updated•5 years ago
|
Comment 11•5 years ago
|
||
marmedelama points out the following (https://github.com/web-platform-tests/wpt/commit/7a99c5628fa0729330eea64af452ae4c5f93598e#r36904078):
six.ensure_string does not exist, but six.ensure_str does I think its just a typo but code seems to be commited by a bot. Should i fix it "manually" or does it need to be fixed upstream?
Assignee | ||
Comment 12•5 years ago
|
||
Commented on the PR; fixes anywhere are acceptable.
Description
•