mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
gh-108303: Remove the non-test Lib/test/reperf.py (GH-114356)
This commit is contained in:
parent
403f3ddedc
commit
d7e83398c1
3 changed files with 15 additions and 28 deletions
|
|
@ -1971,7 +1971,11 @@ class MiscTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
@unittest.skipUnless(support.Py_DEBUG,
|
||||
'-X presite requires a Python debug build')
|
||||
def test_presite(self):
|
||||
cmd = [sys.executable, "-I", "-X", "presite=test.reperf", "-c", "print('cmd')"]
|
||||
cmd = [
|
||||
sys.executable,
|
||||
"-I", "-X", "presite=test._test_embed_structseq",
|
||||
"-c", "print('unique-python-message')",
|
||||
]
|
||||
proc = subprocess.run(
|
||||
cmd,
|
||||
stdout=subprocess.PIPE,
|
||||
|
|
@ -1980,9 +1984,8 @@ class MiscTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
)
|
||||
self.assertEqual(proc.returncode, 0)
|
||||
out = proc.stdout.strip()
|
||||
self.assertIn("10 times sub", out)
|
||||
self.assertIn("CPU seconds", out)
|
||||
self.assertIn("cmd", out)
|
||||
self.assertIn("Tests passed", out)
|
||||
self.assertIn("unique-python-message", out)
|
||||
|
||||
|
||||
class StdPrinterTests(EmbeddingTestsMixin, unittest.TestCase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue