Skip to content

Commit

Permalink
Fix test_importer.py getpelican#3376
Browse files Browse the repository at this point in the history
  • Loading branch information
egberts committed Jul 23, 2024
1 parent 513abbf commit 684547d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pelican/tests/test_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def r(f):
test_post = filter(lambda p: p[0].startswith("Code in List"), self.posts)
with temporary_folder() as temp:
md = next(r(f) for f in silent_f2p(test_post, "markdown", temp))
sample_line = re.search(r"- This is a code sample", md).group(0)
sample_line = re.search(r"-\s+This is a code sample", md).group(0)
code_line = re.search(r"\s+a = \[1, 2, 3\]", md).group(0)
self.assertTrue(sample_line.rindex("This") < code_line.rindex("a"))

Expand Down

0 comments on commit 684547d

Please sign in to comment.