Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make PaletteSelect use stylehseets instead of inline styles #14052

Merged
merged 3 commits into from
Sep 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Disable maximum image size checks in PIL
  • Loading branch information
mattpap committed Sep 6, 2024
commit a8ec93bb49117320e313b494974c487000eae8dd
10 changes: 10 additions & 0 deletions tests/unit/bokeh/io/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
import sys
from typing import TYPE_CHECKING

# External imports
import PIL.Image

## External imports
if TYPE_CHECKING:
from selenium.webdriver.remote.webdriver import WebDriver
Expand Down Expand Up @@ -68,6 +71,13 @@ def webdriver_with_scale_factor(request: pytest.FixtureRequest):
finally:
webdriver_control.terminate(driver)

@pytest.fixture(scope="module", autouse=True)
def disable_max_image_pixels():
max_image_pixels = PIL.Image.MAX_IMAGE_PIXELS
PIL.Image.MAX_IMAGE_PIXELS = None
yield
PIL.Image.MAX_IMAGE_PIXELS = max_image_pixels

#-----------------------------------------------------------------------------
# General API
#-----------------------------------------------------------------------------
Expand Down
Loading