summaryrefslogtreecommitdiff
path: root/bs4/__init__.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2023-01-27 20:00:57 -0500
committerLeonard Richardson <leonardr@segfault.org>2023-01-27 20:00:57 -0500
commit770030fccfd374e5d12f257e9be30b23ddc844a5 (patch)
tree02bd35f51ae15421ac9b7294dd5f94b869f0dafd /bs4/__init__.py
parent159acad64e01010cded01c9c6dba849178e929e5 (diff)
Change the tests that check warnings to also (indirectly) verify that the stacklevel associated with the warning is more or less correct.
Diffstat (limited to 'bs4/__init__.py')
-rw-r--r--bs4/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/__init__.py b/bs4/__init__.py
index 887ed19..5ac28ee 100644
--- a/bs4/__init__.py
+++ b/bs4/__init__.py
@@ -211,7 +211,7 @@ class BeautifulSoup(Tag):
warnings.warn(
'The "%s" argument to the BeautifulSoup constructor '
'has been renamed to "%s."' % (old_name, new_name),
- DeprecationWarning
+ DeprecationWarning, stacklevel=3
)
return kwargs.pop(old_name)
return None