From 90988feebcd2f37c2715627d53b9c4a12dea51a5 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Tue, 11 Feb 2014 09:47:38 +0100 Subject: DocTests: Allow multiple example inputs to be used as single ledger data for an example command --- test/DocTests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/DocTests.py') diff --git a/test/DocTests.py b/test/DocTests.py index a50ec03d..60d8c637 100755 --- a/test/DocTests.py +++ b/test/DocTests.py @@ -68,6 +68,11 @@ class DocTests: except KeyError: self.examples[test_id] = dict() + try: + example = self.examples[test_id][test_kind][test_kind] + example + except KeyError: + pass + self.examples[test_id][test_kind] = { 'bpos': test_begin_pos, 'epos': test_end_pos, -- cgit v1.2.3