From ed8a6a4c7bd2bd367027d6e54067469e622b6116 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 11 Oct 2015 11:06:00 +0200 Subject: [PATCH] Update to cssutils 1.0.1 This fixes cssutils on Python 3.5 (yay!). --- requirements.txt | 2 +- tests/unit/browser/test_mhtml.py | 4 +--- tests/unit/utils/test_version.py | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/requirements.txt b/requirements.txt index 9e07256bd..d5dd44c08 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,4 +5,4 @@ pyPEG2==2.15.2 PyYAML==3.11 colorama==0.3.3 colorlog==2.6.0 -cssutils==1.0 +cssutils==1.0.1 diff --git a/tests/unit/browser/test_mhtml.py b/tests/unit/browser/test_mhtml.py index 3ac115ca5..287bb1bc1 100644 --- a/tests/unit/browser/test_mhtml.py +++ b/tests/unit/browser/test_mhtml.py @@ -230,9 +230,7 @@ def test_empty_content_type(checker): @pytest.mark.parametrize('has_cssutils', [ - # TODO: remove xfail once new cssutils is released - pytest.mark.xfail(sys.version_info >= (3, 5), reason='https://' - 'bitbucket.org/cthedot/cssutils/issues/52')(True), + True, False, ]) @pytest.mark.parametrize('inline, style, expected_urls', [ diff --git a/tests/unit/utils/test_version.py b/tests/unit/utils/test_version.py index d759b44dd..eb398156f 100644 --- a/tests/unit/utils/test_version.py +++ b/tests/unit/utils/test_version.py @@ -435,9 +435,7 @@ class TestModuleVersions: ('jinja2', True), ('pygments', True), ('yaml', True), - pytest.mark.xfail(sys.version_info >= (3, 5), reason='cssutils 1.0 and' - ' earlier are broken on Python 3.5')(('cssutils', - True)), + ('cssutils', True), ]) def test_existing_attributes(self, name, has_version): """Check if all dependencies have an expected __version__ attribute.