rm-hull / luma.lcd

Python module to drive PCD8544, HT1621, ST7735, ST7567 and UC1701X-based LCDs
https://luma-lcd.readthedocs.io
MIT License
156 stars 56 forks source link

DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01) #157

Closed thijstriemstra closed 1 year ago

thijstriemstra commented 1 year ago
tests/test_hd44780.py::test_display
  /home/thijs/projects/luma.lcd/tests/test_hd44780.py:100: DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox or getlength instead.
    size = device.font.getsize('This is a test\uFFFF')

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html