File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ def runtest(self):
96
96
fragmentContainer = self .test ['document-fragment' ]
97
97
expected = convertExpected (self .test ['document' ])
98
98
expectedErrors = self .test ['errors' ].split ("\n " ) if self .test ['errors' ] else []
99
+
99
100
scripting = False
100
101
if 'script-on' in self .test :
101
102
scripting = True
@@ -156,13 +157,17 @@ def runtest(self):
156
157
fragmentContainer = self .test ['document-fragment' ]
157
158
expected = convertExpected (self .test ['document' ])
158
159
160
+ scripting = False
161
+ if 'script-on' in self .test :
162
+ scripting = True
163
+
159
164
with warnings .catch_warnings ():
160
165
warnings .simplefilter ("error" )
161
166
try :
162
167
if fragmentContainer :
163
- document = p .parseFragment (input , fragmentContainer )
168
+ document = p .parseFragment (input , fragmentContainer , scripting = scripting )
164
169
else :
165
- document = p .parse (input )
170
+ document = p .parse (input , scripting = scripting )
166
171
except constants .DataLossWarning :
167
172
pytest .skip ("data loss warning" )
168
173
You can’t perform that action at this time.
0 commit comments