@@ -216,19 +216,18 @@ def test_line_padding_c_passes(self):
216216 def test_text_shadow_5_shadows_raises (self ):
217217 doc = _make_simple_doc ()
218218 body = doc .get_body ()
219- for element in body .dfs_iterator ():
220- if isinstance (element , model .Span ):
221- shadow = styles .TextShadowType .Shadow (
222- x_offset = styles .LengthType (1 , styles .LengthType .Units .pct ),
223- y_offset = styles .LengthType (1 , styles .LengthType .Units .pct ),
224- )
225- element .set_style (
226- styles .StyleProperties .TextShadow ,
227- styles .TextShadowType (shadows = (shadow , shadow , shadow , shadow , shadow )),
228- )
229-
230219 with self .assertRaises (ValueError ):
231- IMSC11TextFilter ().process (doc )
220+ for element in body .dfs_iterator ():
221+ if isinstance (element , model .Span ):
222+ shadow = styles .TextShadowType .Shadow (
223+ x_offset = styles .LengthType (1 , styles .LengthType .Units .pct ),
224+ y_offset = styles .LengthType (1 , styles .LengthType .Units .pct ),
225+ )
226+ element .set_style (
227+ styles .StyleProperties .TextShadow ,
228+ styles .TextShadowType (shadows = (shadow , shadow , shadow , shadow , shadow )),
229+ )
230+ IMSC11TextFilter ().process (doc )
232231
233232 def test_text_shadow_4_shadows_passes (self ):
234233 doc = _make_simple_doc ()
0 commit comments