aboutsummaryrefslogtreecommitdiff
path: root/tests/08_test_patch.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/08_test_patch.py')
-rw-r--r--tests/08_test_patch.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/08_test_patch.py b/tests/08_test_patch.py
index 1567f01..9fe7f7f 100644
--- a/tests/08_test_patch.py
+++ b/tests/08_test_patch.py
@@ -126,3 +126,14 @@ reproducible build
Author: Alexis Bienvenüe <pado@passoire.fr>
""",
p.long_desc)
+
+
+class TestMarkerOnly(unittest.TestCase):
+ data_dir = os.path.splitext(__file__)[0] + '_data'
+
+ def test_parse(self):
+ """Don't fail on empty patch header"""
+ patchfile = os.path.join(self.data_dir, "916545.patch")
+ self.assertTrue(os.path.exists(patchfile))
+ p = Dep3Patch(patchfile)
+ self.assertEqual("916545", p.subject)