diff options
Diffstat (limited to 'tests/testasciidoc.py')
-rwxr-xr-x | tests/testasciidoc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testasciidoc.py b/tests/testasciidoc.py index 95aadf6..282d25d 100755 --- a/tests/testasciidoc.py +++ b/tests/testasciidoc.py @@ -13,6 +13,7 @@ import sys sys.path.append(str(Path(__file__).resolve().parent.parent)) import asciidocapi # noqa: E402 +from asciidoc import DEFAULT_NEWLINE # noqa: E402 # Default backends. BACKENDS = ('html4', 'xhtml11', 'docbook', 'docbook5', 'html5') @@ -196,7 +197,7 @@ class AsciiDocTest(object): os.mkdir(self.datadir) with open(self.backend_filename(backend), 'w+', encoding='utf-8') as open_file: print('WRITING: %s' % open_file.name) - open_file.writelines([s + os.linesep for s in lines]) + open_file.writelines([s + DEFAULT_NEWLINE for s in lines]) def update(self, backend=None, force=False): """ |