File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -361,9 +361,7 @@ def fetcher(url):
361361 assert ir2 .styleSheet .media .mediaText == 'all'
362362 assert ir2 .styleSheet .parentStyleSheet is None # ir.styleSheet
363363 assert ir2 .styleSheet .title == 'title2'
364- assert (
365- ir2 .styleSheet .cssText == '@charset "ascii";\n a {\n color: red\n }'
366- )
364+ assert ir2 .styleSheet .cssText == '@charset "ascii";\n a {\n color: red\n }'
367365
368366 sheet = cssutils .parseString ('@import "CANNOT-FIND.css";' )
369367 ir = sheet .cssRules [0 ]
Original file line number Diff line number Diff line change @@ -116,9 +116,7 @@ def test_parseUrl(self):
116116 assert sheet1 .cssText == cssText
117117 assert sheet2 .encoding == override
118118 if sheet1 .cssText and cssText .startswith ('@charset' ):
119- assert sheet2 .cssText == (
120- cssText .replace ('ascii' , override )
121- )
119+ assert sheet2 .cssText == (cssText .replace ('ascii' , override ))
122120 elif sheet1 .cssText :
123121 assert sheet2 .cssText == (overrideprefix + '\n ' + cssText )
124122 else :
You can’t perform that action at this time.
0 commit comments