Skip to content

False positives #292

@ArneBachmannDLR

Description

@ArneBachmannDLR

I have a lot of false conversions, is this a wrong assumption on my part or does it work as intended?

-if __sut__: import pathlib, sys; globals()["__name__"] = "assetdb." + pathlib.Path(__file__).name.replace(".py", ""); sys.path.insert(0, str(pathlib.Path(__file__).absolute().parent.parent))
+if __sut__: import sys; globals()["__name__"] = "assetdb." + pathlib.Path(__file__).name.replace(".py", ""); sys.path.insert(0, str(pathlib.Path(__file__).absolute().parent.parent))

-if __sut__: import doctest, sys; sys.exit(doctest.testmod(optionflags=doctest.ELLIPSIS)[0])
+if __sut__: sys.exit(doctest.testmod(optionflags=doctest.ELLIPSIS)[0])

The pathlib import is removed although it is required here (first use in the module). Same for the doctest import.

Metadata

Metadata

Assignees

No one assigned

    Labels

    changelogChanges should be written to the changelog file.enhancementNew feature or request

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions