Skip to content

Commit 93da596

Browse files
committed
Use another file instead of reperf
1 parent d4387f1 commit 93da596

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Lib/test/test_embed.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -1829,7 +1829,11 @@ def test_no_memleak(self):
18291829
@unittest.skipUnless(support.Py_DEBUG,
18301830
'-X presite requires a Python debug build')
18311831
def test_presite(self):
1832-
cmd = [sys.executable, "-I", "-X", "presite=test.reperf", "-c", "print('cmd')"]
1832+
cmd = [
1833+
sys.executable,
1834+
"-I", "-X", "presite=test._test_embed_structseq",
1835+
"-c", "print('cmd')",
1836+
]
18331837
proc = subprocess.run(
18341838
cmd,
18351839
stdout=subprocess.PIPE,
@@ -1838,8 +1842,7 @@ def test_presite(self):
18381842
)
18391843
self.assertEqual(proc.returncode, 0)
18401844
out = proc.stdout.strip()
1841-
self.assertIn("10 times sub", out)
1842-
self.assertIn("CPU seconds", out)
1845+
self.assertIn("Tests passed", out)
18431846
self.assertIn("cmd", out)
18441847

18451848

0 commit comments

Comments
 (0)