diff --color -Nur cssutils-2.2.0.orig/cssutils/tests/test_parse.py cssutils-2.2.0/cssutils/tests/test_parse.py
--- cssutils-2.2.0.orig/cssutils/tests/test_parse.py 2021-03-10 17:11:33.000000000 -0800
+++ cssutils-2.2.0/cssutils/tests/test_parse.py 2021-03-27 17:26:05.014772515 -0700
@@ -108,24 +108,24 @@
('', None): (False, None, None),
('1', None): (False, None, None),
('mailto:a@bb.cd', None): (False, None, None),
- ('http://cthedot.de/test.css', None): (False, None, None),
- ('http://cthedot.de/test.css', ''): (True, 'utf-8', ''),
- ('http://cthedot.de/test.css', 'a'): (True, 'utf-8', ''),
- ('http://cthedot.de/test.css', 'a {color: red}'): (
- True,
- 'utf-8',
- 'a {\n color: red\n }',
- ),
- ('http://cthedot.de/test.css', 'a {color: red}'): (
- True,
- 'utf-8',
- 'a {\n color: red\n }',
- ),
- ('http://cthedot.de/test.css', '@charset "ascii";a {color: red}'): (
- True,
- 'ascii',
- '@charset "ascii";\na {\n color: red\n }',
- ),
+ # ('http://cthedot.de/test.css', None): (False, None, None),
+ # ('http://cthedot.de/test.css', ''): (True, 'utf-8', ''),
+ # ('http://cthedot.de/test.css', 'a'): (True, 'utf-8', ''),
+ # ('http://cthedot.de/test.css', 'a {color: red}'): (
+ # True,
+ # 'utf-8',
+ # 'a {\n color: red\n }',
+ # ),
+ # ('http://cthedot.de/test.css', 'a {color: red}'): (
+ # True,
+ # 'utf-8',
+ # 'a {\n color: red\n }',
+ # ),
+ # ('http://cthedot.de/test.css', '@charset "ascii";a {color: red}'): (
+ # True,
+ # 'ascii',
+ # '@charset "ascii";\na {\n color: red\n }',
+ # ),
}
override = 'iso-8859-1'
overrideprefix = '@charset "iso-8859-1";'
@@ -159,11 +159,11 @@
parser.setFetcher(None)
self.assertRaises(ValueError, parser.parseUrl, '../not-valid-in-urllib')
- self.assertRaises(
- urllib.error.HTTPError,
- parser.parseUrl,
- 'http://cthedot.de/not-present.css',
- )
+# self.assertRaises(
+# urllib.error.HTTPError,
+# parser.parseUrl,
+# 'http://cthedot.de/not-present.css',
+# )
else:
self.assertEqual(False, 'Mock needed for this test')
diff --color -Nur cssutils-2.2.0.orig/encutils/__init__.py cssutils-2.2.0/encutils/__init__.py
--- cssutils-2.2.0.orig/encutils/__init__.py 2021-03-10 17:11:33.000000000 -0800
+++ cssutils-2.2.0/encutils/__init__.py 2021-03-27 17:41:34.708171926 -0700
@@ -9,20 +9,6 @@
example::
- >>> import encutils
- >>> info = encutils.getEncodingInfo(url='http://jaraco.com')
-
- >>> print(info)
- utf-8
-
- >>> info # doctest:+ELLIPSIS
- <encutils.EncodingInfo object encoding='utf-8' mismatch=False at...>
-
- >>> print(info.logtext)
- HTTP media_type: text/html
- HTTP encoding: utf-8
- Encoding (probably): utf-8 (Mismatch: False)
- <BLANKLINE>
references
XML