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

Fix import namespaces #698

Merged
merged 1 commit into from
May 5, 2022
Merged

Fix import namespaces #698

merged 1 commit into from
May 5, 2022

Conversation

pzelasko
Copy link
Collaborator

@pzelasko pzelasko commented May 5, 2022

Closes #697

@pzelasko pzelasko added this to the v1.2 milestone May 5, 2022
@jtrmal
Copy link
Collaborator

jtrmal commented May 5, 2022

Would you mind changing the xfail "import" test in kaldi import/export tests and checking if it gets also resolved?
I think it fails for the same reasons

@jtrmal
Copy link
Collaborator

jtrmal commented May 5, 2022

Specifically

@pytest.mark.xfail(reason="Import ordering is somehow not working for now")

@pzelasko
Copy link
Collaborator Author

pzelasko commented May 5, 2022

It failed with

============================= test session starts ==============================
collecting ... collected 1 item

test/test_kaldi_dirs.py::test_get_duration_failurex FAILED               [100%]
test/test_kaldi_dirs.py:167 (test_get_duration_failurex)
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x113fdc160>

    def test_get_duration_failurex(monkeypatch):
        def always_fail_is_module_available(path):
            return False
    
>       monkeypatch.setattr(
            lhotse.utils.is_module_available, always_fail_is_module_available
        )
E       TypeError: use setattr(target, name, value) or setattr(target, value) with target being a dotted import string

test/test_kaldi_dirs.py:172: TypeError

No idea what to do with it.

@jtrmal
Copy link
Collaborator

jtrmal commented May 5, 2022 via email

@jtrmal
Copy link
Collaborator

jtrmal commented May 5, 2022 via email

@pzelasko pzelasko merged commit d0caae7 into master May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

shadowing issues in __init__.py
2 participants