Skip to content

Commit

Permalink
♿ Use raw strings
Browse files Browse the repository at this point in the history
Fixes pytest warnings
  • Loading branch information
tony committed Nov 10, 2018
1 parent 7b54130 commit 4720869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_expansion.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ def test_expand_kSBGY(expanded_data, ucn, expected):
],
)
def test_expand_kXHC1983(expanded_data, ucn, fieldval, expected):
"""
r"""
Each pīnyīn reading is preceded by the character’s location(s) in the
dictionary, separated from the reading by “:” (colon); multiple locations
for a given reading are separated by “,” (comma); multiple “location:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_unihan.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def test_raise_error_unknown_file():

with pytest.raises(KeyError) as excinfo:
process.Packager(options)
excinfo.match('File ([a-zA-Z_\.\'].*) not found in file list.')
excinfo.match(r'File ([a-zA-Z_\.\'].*) not found in file list.')


def test_raise_error_unknown_field_filtered_files():
Expand Down

0 comments on commit 4720869

Please sign in to comment.