Skip to content

Commit 2e0bc77

Browse files
committed
Print the test version instead of the lib version to avoid rewriting expected output after each release
1 parent ebc4078 commit 2e0bc77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testasciidoc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def __init__(self):
107107
self.description = [] # List of lines followoing title.
108108
self.source = None # AsciiDoc test source file name.
109109
self.options = []
110-
self.attributes = {}
110+
self.attributes = {'asciidoc-version': 'test-%s' % __version__}
111111
self.backends = BACKENDS
112112
self.datadir = None # Where output files are stored.
113113
self.disabled = False
@@ -156,7 +156,7 @@ def parse(self, lines, confdir, datadir):
156156
if isinstance(v, basestring):
157157
self.options[i] = (v,None)
158158
elif directive == 'attributes':
159-
self.attributes = eval(' '.join(data))
159+
self.attributes.update(eval(' '.join(data)))
160160
elif directive == 'backends':
161161
self.backends = eval(' '.join(data))
162162
elif directive == 'name':

0 commit comments

Comments
 (0)