use io to support python2+3; some minor other cleanup (#211)

This commit is contained in:
Peter authored and GitHub committed 2018-08-10 11:14:36 -07:00
1 parent cc638493e7
commit 8024da5696
3 files changed
+30 -23

No files matched your search

+2 -2
View File
@@ -76,8 +76,8 @@ def test_languages():
options.data_path = '.'
cards = main.read_card_data(options)
assert cards, '"{}" cards did not read properly'.format(lang)
cards = main.add_card_text(options, cards, 'en_us')
cards = main.add_card_text(options, cards, lang)
cards = main.add_card_text(cards, 'en_us')
cards = main.add_card_text(cards, lang)
if lang == 'it':
assert "Maledizione" in [card.name for card in cards]
elif lang == 'de':