-
Notifications
You must be signed in to change notification settings - Fork 223
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Would you mind changing the xfail "import" test in kaldi import/export tests and checking if it gets also resolved? |
Specifically lhotse/test/test_kaldi_dirs.py Line 168 in cda63b5
|
It failed with
No idea what to do with it. |
ok, that I think resolved the import issue and now I just have to learn how
to write a correct test ;)
y.
…On Thu, May 5, 2022 at 11:16 AM Piotr Żelasko ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub
<#698 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUKYX4X7MLK4BOGER4FK63VIPQ5XANCNFSM5VFLBKAA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I consider it my issue to fix, so perhaps do not worry about it.
y.
…On Thu, May 5, 2022 at 11:18 AM Jan Yenda Trmal ***@***.***> wrote:
ok, that I think resolved the import issue and now I just have to learn
how to write a correct test ;)
y.
On Thu, May 5, 2022 at 11:16 AM Piotr Żelasko ***@***.***>
wrote:
> 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.
>
> —
> Reply to this email directly, view it on GitHub
> <#698 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACUKYX4X7MLK4BOGER4FK63VIPQ5XANCNFSM5VFLBKAA>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #697