Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.6] Define create_module()/exec_module() in AssertionRewritingHook to avoid ImportWarning #8236

Closed
wants to merge 1 commit into from

Commits on Jan 11, 2021

  1. Define create_module()/exec_module() in AssertionRewritingHook to avo…

    …id ImportWarning
    
        __________ ERROR collecting testing/python/show_fixtures_per_test.py ___________
        /usr/lib/python3.10/site-packages/py/_path/local.py:704: in pyimport
            __import__(modname)
        <frozen importlib._bootstrap>:1026: in _find_and_load
            ???
        <frozen importlib._bootstrap>:1005: in _find_and_load_unlocked
            ???
        <frozen importlib._bootstrap>:681: in _load_unlocked
            ???
        E   ImportWarning: AssertionRewritingHook.exec_module() not found; falling back to load_module()
        !!!!!!!!!!!!!!!!!!! Interrupted: 59 errors during collection !!!!!!!!!!!!!!!!!!!
        =========================== 59 error in 3.65 seconds ===========================
    hroncok committed Jan 11, 2021
    Configuration menu
    Copy the full SHA
    b446caf View commit details
    Browse the repository at this point in the history