Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 93da596

Browse filesBrowse files
committed
Use another file instead of reperf
1 parent d4387f1 commit 93da596
Copy full SHA for 93da596

File tree

Expand file treeCollapse file tree

1 file changed

+6
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-3
lines changed

‎Lib/test/test_embed.py

Copy file name to clipboardExpand all lines: Lib/test/test_embed.py
+6-3Lines changed: 6 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.