Skip to content

Commit

Permalink
failure message changed to unicode. Note that this will require pytes…
Browse files Browse the repository at this point in the history
…t >= 2.9.1 to avoid a formatting bug (pytest-dev/pytest#1379)
  • Loading branch information
cbroschinski committed Aug 18, 2016
1 parent 7b09ee7 commit 8544390
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/test/test_apc_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, file_name, line_number, row):
doi_duplicate_list = []
apc_data = []

for file_name in ["data/apc_de.csv", "data/offsetting/offsetting.csv"]:
for file_name in ["data/apc_de.csv"]:
csv_file = open(file_name, "r")
reader = oat.UnicodeDictReader(csv_file)
line = 2
Expand Down Expand Up @@ -128,7 +128,7 @@ def check_name_consistency(row_object):
journal = row["journal_full_title"]
publ = row["publisher"]
line_str = '{}, line {}: '.format(row_object.file_name, row_object.line_number)
msg = (line_str + 'Two entries share a common {}ISSN ({}), but the ' +
msg = (u'' + line_str + 'Two entries share a common {}ISSN ({}), but the ' +
'{} differs ("{}" vs "{}")')
for other_row_object in apc_data:
other_row = other_row_object.row
Expand Down

0 comments on commit 8544390

Please sign in to comment.