Skip to content

[πŸ› Bug]: Some tests in py/test/selenium/webdriver using 'dead battery' library imghdrΒ #14765

@tijuca

Description

@tijuca

What happened?

Not a really bug report, just to mentioning an potential upcoming incompatibility.

The Debian Python Team discovered that several upstream project tarballs, which are used as base for building Debian packages, still use some modules that are not being available in Python 3.13+ anymore.

The tests
https://github.com/SeleniumHQ/selenium/blob/trunk/py/test/selenium/webdriver/common/takes_screenshots_tests.py#L19
https://github.com/SeleniumHQ/selenium/blob/trunk/py/test/selenium/webdriver/firefox/ff_takes_full_page_screenshots_tests.py#L19
https://github.com/SeleniumHQ/selenium/blob/trunk/py/test/selenium/webdriver/remote/remote_connection_tests.py#L18

using the imghdr module, that will be a so called dead battery starting with Python 3.13. https://peps.python.org/pep-0594/#deprecated-modules

The tests will need some rework to be functional with 3.13+

The related bug report in Debian is https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1084692

How can we reproduce the issue?

n.a.

Relevant log output

n.a.

Operating System

Debian 13 Trixie

Selenium version

Python 4.24.4

What are the browser(s) and version(s) where you see this issue?

n.a.

What are the browser driver(s) and version(s) where you see this issue?

n.a.

Are you using Selenium Grid?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!I-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions