fix weird test flake in sys

This commit is contained in:
ahgamut 2022-05-27 08:02:26 +05:30
parent 86ddfa2cee
commit f8b56b74e3

View file

@ -667,7 +667,7 @@ class SysModuleTest(unittest.TestCase):
stdout = p.communicate()[0]
executable = stdout.strip().decode("ASCII")
p.wait()
self.assertIn(executable, ["b''", repr(sys.executable.replace("//", "/").encode("ascii", "backslashreplace"))])
self.assertIn(executable, ['', repr(sys.executable.replace("//", "/").encode("ascii", "backslashreplace"))])
def check_fsencoding(self, fs_encoding, expected=None):
self.assertIsNotNone(fs_encoding)