mirror of
https://github.com/zoriya/guessit.git
synced 2026-06-01 10:05:31 +00:00
fix(typo): fix common typo
This commit is contained in:
committed by
Rémi Alvergnat
parent
1f35e44b0d
commit
42a80f0992
+1
-1
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user