Skip to content

Commit

Permalink
Merge branch 'master' into 846-typing-Generic-in-MRO
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr authored Dec 11, 2024
2 parents 7307b94 + de81dcd commit b5c5fed
Show file tree
Hide file tree
Showing 2 changed files with 748 additions and 4 deletions.
10 changes: 6 additions & 4 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, is_quoted, unquote_str, IniConfigParser, TomlConfigParser

Expand Down Expand Up @@ -32,9 +32,11 @@ def test_unquote_str() -> None:
assert unquote_str('""""value""""') == '""""value""""'

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 b5c5fed

Please sign in to comment.