зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1709690 [wpt PR 28849] - Fix setting os.environ["PATH"] to a binary string, a=testonly
Automatic update from web-platform-tests Fix setting os.environ["PATH"] to a binary string (#28849) This code would raise "TypeError: str expected, not bytes" is run using Python 3, since setting os.environ keys implictly encodes using sys.getfilesystemencoding(): https://docs.python.org/3/library/os.html#os.environ This might be dead code, or simply not exercised in wpt's CI. Spotted while preparing https://github.com/web-platform-tests/wpt/pull/28848. -- wpt-commits: 3d2cc9904a08bf372bdc09c96628cc4c986278ee wpt-pr: 28849
This commit is contained in:
Родитель
7ae1548dc6
Коммит
417f08a201
|
@ -3,7 +3,6 @@ import os
|
|||
import platform
|
||||
import signal
|
||||
import subprocess
|
||||
import sys
|
||||
from abc import ABCMeta, abstractmethod
|
||||
|
||||
import mozinfo
|
||||
|
@ -675,8 +674,7 @@ class ProfileCreator(object):
|
|||
|
||||
|
||||
env[env_var] = (os.path.pathsep.join([certutil_dir, env[env_var]])
|
||||
if env_var in env else certutil_dir).encode(
|
||||
sys.getfilesystemencoding() or 'utf-8', 'replace')
|
||||
if env_var in env else certutil_dir)
|
||||
|
||||
def certutil(*args):
|
||||
cmd = [self.certutil_binary] + list(args)
|
||||
|
|
Загрузка…
Ссылка в новой задаче