diff options
author | Leonard Richardson <leonardr@segfault.org> | 2023-01-31 12:01:52 -0500 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2023-01-31 12:01:52 -0500 |
commit | 79a32611992bafbfa9f1ae68e27485355d96d56f (patch) | |
tree | d2c94f4b6bb07d2e10c0d1ea7d542e1ed13156c9 | |
parent | ce05e066722c926b6cd6536968911072e5cf08b0 (diff) |
Fixed missing import that caused test failures when Soup Sieve is installed.
-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.""" |