fix(typo): fix common typo

This commit is contained in:
josef radinger
2022-05-08 19:47:07 +02:00
committed by Rémi Alvergnat
parent 1f35e44b0d
commit 42a80f0992
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ class GuessitException(Exception):
"""
def __init__(self, string, options):
super().__init__("An internal error has occured in guessit.\n"
super().__init__("An internal error has occurred in guessit.\n"
"===================== Guessit Exception Report =====================\n"
f"version={__version__}\n"
f"string={str(string)}\n"
+1 -1
View File
@@ -58,7 +58,7 @@ def test_properties():
def test_exception():
with pytest.raises(GuessitException) as excinfo:
guessit(object())
assert "An internal error has occured in guessit" in str(excinfo.value)
assert "An internal error has occurred in guessit" in str(excinfo.value)
assert "Guessit Exception Report" in str(excinfo.value)
assert "Please report at https://github.com/guessit-io/guessit/issues" in str(excinfo.value)
+1 -1
View File
@@ -60,6 +60,6 @@ def test_properties():
def test_exception():
with pytest.raises(GuessitException) as excinfo:
guessit(object())
assert "An internal error has occured in guessit" in str(excinfo.value)
assert "An internal error has occurred in guessit" in str(excinfo.value)
assert "Guessit Exception Report" in str(excinfo.value)
assert "Please report at https://github.com/guessit-io/guessit/issues" in str(excinfo.value)