Skip to content

Commit 202a53c

Browse files
authored
Allow directory path separators in slowest-read-duration timing pattern regexes (#14110)
1 parent 87c931b commit 202a53c

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
def test_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
assert len(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' in app.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
assert len(matches) > 0
7070

7171

0 commit comments

Comments
 (0)