diff options
-rw-r--r-- | CHANGELOG | 6 | ||||
-rw-r--r-- | LICENSE | 11 | ||||
-rw-r--r-- | bs4/tests/test_pageelement.py | 3 |
3 files changed, 13 insertions, 7 deletions
@@ -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 @@ -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.""" |