mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2024-12-03 15:20:46 +00:00
fixes error with escape character in regex
This commit is contained in:
parent
df473d89ae
commit
2bba0ff67a
@ -1,3 +1,5 @@
|
||||
import re
|
||||
|
||||
import pytest
|
||||
|
||||
import voicemeeterlib
|
||||
@ -30,11 +32,11 @@ class TestErrors:
|
||||
"No config with name 'unknown' is loaded into memory",
|
||||
f"Known configs: {list(vm.configs.keys())}",
|
||||
)
|
||||
with pytest.raises(voicemeeterlib.error.VMError) as exc_info:
|
||||
vm.apply_config("unknown")
|
||||
|
||||
e = exc_info.value
|
||||
assert e.message == "\n".join(EXPECTED_MSG)
|
||||
with pytest.raises(
|
||||
voicemeeterlib.error.VMError, match=re.escape("\n".join(EXPECTED_MSG))
|
||||
):
|
||||
vm.apply_config("unknown")
|
||||
|
||||
def test_it_tests_an_invalid_config_key(self):
|
||||
CONFIG = {
|
||||
|
Loading…
Reference in New Issue
Block a user