| 581 | self.assertEqual(f"X.Y.exe -prearg {quote(script)} -postarg", data["stdout"].strip()) |
| 582 | |
| 583 | def test_py2_shebang(self): |
| 584 | with self.py_ini(TEST_PY_DEFAULTS): |
| 585 | with self.script("#! /usr/bin/python2 -prearg") as script: |
| 586 | data = self.run_py([script, "-postarg"]) |
| 587 | self.assertEqual("PythonTestSuite", data["SearchInfo.company"]) |
| 588 | self.assertEqual("3.100-32", data["SearchInfo.tag"]) |
| 589 | self.assertEqual(f"X.Y-32.exe -prearg {quote(script)} -postarg", |
| 590 | data["stdout"].strip()) |
| 591 | |
| 592 | def test_py3_shebang(self): |
| 593 | with self.py_ini(TEST_PY_DEFAULTS): |