|
|
@ -11,6 +11,7 @@ from pkg_resources import resource_filename |
|
|
|
from patacrep import files |
|
|
|
from patacrep.build import DEFAULT_CONFIG |
|
|
|
from patacrep.encoding import open_read |
|
|
|
from patacrep.songs import errors |
|
|
|
|
|
|
|
from .. import disable_logging |
|
|
|
from .. import dynamic # pylint: disable=unused-import |
|
|
@ -119,7 +120,7 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): |
|
|
|
sourcename = "{}.{}.source".format(base, in_format) |
|
|
|
with self.chdir('errors'): |
|
|
|
parser = self.song_plugins[out_format][in_format] |
|
|
|
self.assertRaises(SyntaxError, parser, sourcename, self.config) |
|
|
|
self.assertRaises(errors.SongSyntaxError, parser, sourcename, self.config) |
|
|
|
|
|
|
|
test_parse_failure.__doc__ = ( |
|
|
|
"Test that '{base}' parsing fails." |
|
|
|