(args)
| 3273 | class SpawnTests(unittest.TestCase): |
| 3274 | @staticmethod |
| 3275 | def quote_args(args): |
| 3276 | # On Windows, os.spawn* simply joins arguments with spaces: |
| 3277 | # arguments need to be quoted |
| 3278 | if os.name != 'nt': |
| 3279 | return args |
| 3280 | return [f'"{arg}"' if " " in arg.strip() else arg for arg in args] |
| 3281 | |
| 3282 | def create_args(self, *, with_env=False, use_bytes=False): |
| 3283 | self.exitcode = 17 |
no test coverage detected