summaryrefslogtreecommitdiff
path: root/bs4/tests/test_css.py
diff options
context:
space:
mode:
Diffstat (limited to 'bs4/tests/test_css.py')
-rw-r--r--bs4/tests/test_css.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bs4/tests/test_css.py b/bs4/tests/test_css.py
index c9ade48..359dbcd 100644
--- a/bs4/tests/test_css.py
+++ b/bs4/tests/test_css.py
@@ -15,7 +15,6 @@ from . import (
if SOUP_SIEVE_PRESENT:
from soupsieve import SelectorSyntaxError
- from soupsieve import compile as sv_compile
@pytest.mark.skipif(not SOUP_SIEVE_PRESENT, reason="Soup Sieve not installed")
@@ -96,7 +95,7 @@ class TestCSSSelectors(SoupTest):
self.assert_selects(selector, expected_ids)
def test_precompiled(self):
- sel = sv_compile('div')
+ sel = self.soup.css.compile('div')
els = self.soup.select(sel)
assert len(els) == 4