summaryrefslogtreecommitdiff
path: root/bs4/tests/__init__.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2021-10-24 13:26:39 -0400
committerLeonard Richardson <leonardr@segfault.org>2021-10-24 13:26:39 -0400
commitdd8aa7237b88569c99e85b300b0cf537aeaebfbd (patch)
treea6923b9558dab70df4de12ccbef0e0612ad909a6 /bs4/tests/__init__.py
parentf7ec284182f3e78974fcdc7b62c88a5c3a6dbbbd (diff)
Used a warning to formally deprecate the 'text' argument in favor of 'string'.
Diffstat (limited to 'bs4/tests/__init__.py')
-rw-r--r--bs4/tests/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bs4/tests/__init__.py b/bs4/tests/__init__.py
index 5147f0e..224c9d8 100644
--- a/bs4/tests/__init__.py
+++ b/bs4/tests/__init__.py
@@ -510,13 +510,13 @@ Hello, world!
self.assert_soup(markup)
soup = self.soup(markup)
- comment = soup.find(text="foobar")
+ comment = soup.find(string="foobar")
assert comment.__class__ == Comment
# The comment is properly integrated into the tree.
- foo = soup.find(text="foo")
+ foo = soup.find(string="foo")
assert comment == foo.next_element
- baz = soup.find(text="baz")
+ baz = soup.find(string="baz")
assert comment == baz.previous_element
def test_preserved_whitespace_in_pre_and_textarea(self):