##// END OF EJS Templates
Change doctest that was failing due to python2/3 print syntax issues.
Fernando Perez -
Show More
@@ -128,15 +128,17 b' def make_label_dec(label,ds=None):'
128 128 --------
129 129
130 130 A simple labeling decorator:
131 >>> slow = make_label_dec('slow')
132 >>> print slow.__doc__
133 Labels a test as 'slow'.
134 131
132 >>> slow = make_label_dec('slow')
133 >>> slow.__doc__
134 "Labels a test as 'slow'."
135
135 136 And one that uses multiple labels and a custom docstring:
137
136 138 >>> rare = make_label_dec(['slow','hard'],
137 139 ... "Mix labels 'slow' and 'hard' for rare tests.")
138 >>> print rare.__doc__
139 Mix labels 'slow' and 'hard' for rare tests.
140 >>> rare.__doc__
141 "Mix labels 'slow' and 'hard' for rare tests."
140 142
141 143 Now, let's test using this one:
142 144 >>> @rare
General Comments 0
You need to be logged in to leave comments. Login now