summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2023-01-31 12:01:52 -0500
committerLeonard Richardson <leonardr@segfault.org>2023-01-31 12:01:52 -0500
commit79a32611992bafbfa9f1ae68e27485355d96d56f (patch)
treed2c94f4b6bb07d2e10c0d1ea7d542e1ed13156c9
parentce05e066722c926b6cd6536968911072e5cf08b0 (diff)
Fixed missing import that caused test failures when Soup Sieve is installed.
-rw-r--r--CHANGELOG6
-rw-r--r--LICENSE11
-rw-r--r--bs4/tests/test_pageelement.py3
3 files changed, 13 insertions, 7 deletions
diff --git a/CHANGELOG b/CHANGELOG
index ec67f5c..086be15 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,9 +1,9 @@
-Beautiful Soup's official support for Python 2 ended on January 1st,
+Note: Beautiful Soup's official support for Python 2 ended on January 1st,
2021. The final release to support Python 2 was Beautiful Soup
4.9.3. In the Launchpad Git repository, the final revision to support
Python 2 was revision 70f546b1e689a70e2f103795efce6d261a3dadf7.
-= 4.11.2 (Unreleased)
+= 4.11.2 (20230131)
* Fixed test failures caused by nondeterministic behavior of
UnicodeDammit's character detection, depending on the platform setup.
@@ -24,6 +24,8 @@ Python 2 was revision 70f546b1e689a70e2f103795efce6d261a3dadf7.
* Passing a Tag's .contents into PageElement.extend() now works the
same way as passing the Tag itself.
+* Soup Sieve tests will be skipped if the library is not installed.
+
= 4.11.1 (20220408)
This release was done to ensure that the unit tests are packaged along
diff --git a/LICENSE b/LICENSE
index 03d3fe5..08e3a9c 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
Beautiful Soup is made available under the MIT license:
- Copyright (c) 2004-2022 Leonard Richardson
+ Copyright (c) Leonard Richardson
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -23,8 +23,9 @@ Beautiful Soup is made available under the MIT license:
SOFTWARE.
Beautiful Soup incorporates code from the html5lib library, which is
-also made available under the MIT license. Copyright (c) 2006-2013
-James Graham and other contributors
+also made available under the MIT license. Copyright (c) James Graham
+and other contributors
-Beautiful Soup depends on the soupsieve library, which is also made
-available under the MIT license. Copyright (c) 2018 Isaac Muse
+Beautiful Soup has an optional dependency on the soupsieve library,
+which is also made available under the MIT license. Copyright (c)
+Isaac Muse
diff --git a/bs4/tests/test_pageelement.py b/bs4/tests/test_pageelement.py
index 44c0c45..6674dad 100644
--- a/bs4/tests/test_pageelement.py
+++ b/bs4/tests/test_pageelement.py
@@ -13,6 +13,9 @@ from . import (
SOUP_SIEVE_PRESENT,
)
+if SOUP_SIEVE_PRESENT:
+ from soupsieve import SelectorSyntaxError
+
class TestEncoding(SoupTest):
"""Test the ability to encode objects into strings."""