Skip to content

test.test_import.ImportTests.test_dll_dependency_import mistakes _d in directory names for a debug build #158091

Description

@jjhelmus

Bug report

Bug description:

On Windows, test_import.ImportTests.test_dll_dependency_import selects the sqlite DLL using:

"sqlite3{}.dll".format("_d" if "_d" in pydname else ""))

Where pydname is the full path to the module. If a intermediate directory contains _d, such as tmp_d... or jon_doe the test incorrectly checks for a debug version of the extension, sqlite3_d.dll instead of sqlite3.dll. Only the filename should be searched for _d.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowstestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions