1
1
mirror of https://git.launchpad.net/beautifulsoup synced 2025-10-05 16:02:46 +02:00

Fixed missing import that caused test failures when Soup Sieve is installed.

This commit is contained in:
Leonard Richardson
2023-01-31 12:01:52 -05:00
parent ce05e06672
commit 79a3261199
3 changed files with 13 additions and 7 deletions

View File

@@ -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

11
LICENSE
View File

@@ -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

View File

@@ -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."""