Browse Source

Use the same open_read function for the tests

pull/126/head
Oliverpool 9 years ago
parent
commit
523a513b86
  1. 3
      test/test_chordpro/test_parser.py

3
test/test_chordpro/test_parser.py

@ -9,6 +9,7 @@ from pkg_resources import resource_filename
from patacrep import files from patacrep import files
from patacrep.build import DEFAULT_CONFIG from patacrep.build import DEFAULT_CONFIG
from patacrep.encoding import open_read
from .. import disable_logging from .. import disable_logging
@ -63,7 +64,7 @@ class FileTestMeta(type):
if base is None or dest is None: if base is None or dest is None:
return return
destname = "{}.{}".format(base, dest) destname = "{}.{}".format(base, dest)
with open(destname, 'r', encoding='utf8') as expectfile: with open_read(destname) as expectfile:
chordproname = "{}.source".format(base) chordproname = "{}.source".format(base)
with disable_logging(): with disable_logging():
self.assertMultiLineEqual( self.assertMultiLineEqual(

Loading…
Cancel
Save