Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit202a53c

Browse files
authored
Allow directory path separators in slowest-read-duration timing pattern regexes (sphinx-doc#14110)
1 parent87c931b commit202a53c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎tests/test_extensions/test_ext_duration.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_duration(app: SphinxTestApp) -> None:
5151
deftest_n_slowest_value(app:SphinxTestApp)->None:
5252
app.build()
5353

54-
matches=re.findall(r'\d+\.\d{3}s\s+[A-Za-z0-9]+\n',app.status.getvalue())
54+
matches=re.findall(r'\d+\.\d{3}s\s+[A-Za-z0-9/]+\n',app.status.getvalue())
5555
assertlen(matches)==2
5656

5757

@@ -65,7 +65,7 @@ def test_n_slowest_all(app: SphinxTestApp) -> None:
6565
app.build()
6666

6767
assert'slowest reading durations'inapp.status.getvalue()
68-
matches=re.findall(r'\d+\.\d{3}s\s+[A-Za-z0-9]+\n',app.status.getvalue())
68+
matches=re.findall(r'\d+\.\d{3}s\s+[A-Za-z0-9/]+\n',app.status.getvalue())
6969
assertlen(matches)>0
7070

7171

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp