summaryrefslogtreecommitdiff
path: root/bs4/testing.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2014-12-07 09:31:30 -0500
committerLeonard Richardson <leonardr@segfault.org>2014-12-07 09:31:30 -0500
commitbf58c02abf418556927363cf79cc86bee58d0592 (patch)
tree747e9f5a6d6aa7fcce064ad44c9efb5e43fdca73 /bs4/testing.py
parenta7f63d509473e11a48ff3f9b2d8b37a19a7a25ef (diff)
Issue a warning if the BeautifulSoup constructor arguments do not explicitly name a parser.
Diffstat (limited to 'bs4/testing.py')
-rw-r--r--bs4/testing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/testing.py b/bs4/testing.py
index ce207cf..3e700f3 100644
--- a/bs4/testing.py
+++ b/bs4/testing.py
@@ -495,7 +495,7 @@ class XMLTreeBuilderSmokeTest(object):
<script type="text/javascript">
</script>
"""
- soup = BeautifulSoup(doc, "xml")
+ soup = BeautifulSoup(doc, "lxml-xml")
# lxml would have stripped this while parsing, but we can add
# it later.
soup.script.string = 'console.log("< < hey > > ");'