Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: apathetic-tools/python-utils
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.5.1
Choose a base ref
...
head repository: apathetic-tools/python-utils
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.5.2
Choose a head ref
  • 2 commits
  • 4 files changed
  • 2 contributors

Commits on Dec 8, 2025

  1. fix(tests): handle __STITCHED__ in package module for runtime mode de…

    …tection
    
    Tests were failing in stitched mode because after serger runs, the
    apathetic_utils package module in sys.modules retains __STITCHED__ and
    __STANDALONE__ attributes. The detect_runtime_mode function checks for
    these in the package module, but the tests were only cleaning up the
    function's globals and __main__ module.
    
    Updated three failing tests to also save, remove, and restore
    __STITCHED__ and __STANDALONE__ from the package module in sys.modules:
    - test_detect_runtime_mode_zipapp_missing_file_attribute
    - test_detect_runtime_mode_package
    - test_detect_runtime_mode_package_missing_main
    InertSloth committed Dec 8, 2025
    Configuration menu
    Copy the full SHA
    d8efa97 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4d46455 View commit details
    Browse the repository at this point in the history
Loading