exiv2/tests/bugfixes/github/test_issue_1959.py
Peter 8505f4d935
Fix pr#2053 for native Windows builds (#2058)
Fixes:
1. Fix Windows native build error introduced in pr#2053. Correct problem of mismatched Windows/Linux newlines.
2. Remove dependency on command line tools being available.
2022-02-04 14:33:32 +00:00

22 lines
618 B
Python

# -*- coding: utf-8 -*-
from system_tests import CaseMeta, path, check_no_ASAN_UBSAN_errors
class XmpIptcStandardsTest(metaclass=CaseMeta):
"""
Regression test for the issue described in:
https://github.com/Exiv2/exiv2/issues/1959
"""
url = "https://github.com/Exiv2/exiv2/issues/1959"
def setUp(self):
self.stdout = [open(self.expand_variables("$filename_ref"),'r').read()]
filename = path("$data_path/issue_1959_poc.xmp")
filename_ref = path("$data_path/issue_1959_poc.xmp.out")
commands = ["$exiv2 -Pkvt $filename"]
stderr = [""]
retval = [0]