Skip to content

Commit

Permalink
Mark tests as xfail. Ref #24.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 8, 2022
1 parent 141245e commit 3163d9c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cssutils/tests/test_property.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
"""Testcases for cssutils.css.property._Property."""

import xml.dom

import pytest

from . import basetest
import cssutils

Expand Down Expand Up @@ -155,6 +158,10 @@ def test_name(self):
self.assertEqual(r'c\olor', p.literalname)
self.assertEqual('color', p.name)

@pytest.mark.xfail(
"sys.version_info > (3, 11)",
reason="jaraco/cssutils#24",
)
def test_literalname(self):
"Property.literalname"
p = cssutils.css.property.Property(r'c\olor', 'red')
Expand Down
7 changes: 7 additions & 0 deletions cssutils/tests/test_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"""
import xml.dom

import pytest

from . import basetest
import cssutils

Expand Down Expand Up @@ -377,6 +380,10 @@ def test_selectorText(self):
# only set as not complete
self.do_raise_r(tests, att='_setSelectorText')

@pytest.mark.xfail(
"sys.version_info > (3, 11)",
reason="jaraco/cssutils#24",
)
def test_specificity(self):
"Selector.specificity"
selector = cssutils.css.Selector()
Expand Down

0 comments on commit 3163d9c

Please sign in to comment.