Skip to content

Commit

Permalink
Merge branch 'master' into 851-format-code-with-black
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr authored Dec 12, 2024
2 parents e24903c + 1c6478e commit e2cbafb
Show file tree
Hide file tree
Showing 3 changed files with 749 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pydoctor/test/test_configparser.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from io import StringIO
from typing import Any, Dict, List
import requests
from pathlib import Path

from pydoctor._configparser import (
parse_toml_section_name,
Expand Down Expand Up @@ -40,11 +40,11 @@ def test_unquote_str() -> None:


def test_unquote_naughty_quoted_strings() -> None:
# See https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/blns.txt
res = requests.get(
'https://raw.githubusercontent.com/minimaxir/big-list-of-naughty-strings/master/blns.txt'
)
text = res.text
# See https://github.com/minimaxir/big-list-of-naughty-strings

text = Path(__file__).parent.joinpath('unquote_test_strings.txt'
).read_text(encoding='utf-8', errors='replace')

for i, string in enumerate(text.split('\n')):
if string.strip().startswith('#'):
continue
Expand Down
Loading

0 comments on commit e2cbafb

Please sign in to comment.