Skip to content

Commit f2a1a90

Browse files
JayBazuzi4dsherwoodisidorejmasonleesusanfung
committed
- B stops reclusion when using repr
Closes #224 Co-Authored-By: 4dsherwood <4dsherwood@users.noreply.github.com> Co-Authored-By: Llewellyn Falco <llewellyn.falco@gmail.com> Co-Authored-By: jmasonlee <262853+jmasonlee@users.noreply.github.com> Co-Authored-By: Susan Fung <38925660+susanfung@users.noreply.github.com> Co-Authored-By: Michael R Wolf <MichaelRWolf@att.net> Co-Authored-By: Joss Hufnagel <43077216+blade290@users.noreply.github.com>
1 parent b2013e1 commit f2a1a90

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

approvaltests/reporter_missing_exception.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class ReporterMissingException(BaseException):
55
def __init__(self, key: str) -> None:
6-
super().__init__(f"Could not find {repr(key)} in the environment, perhaps you need to configure your reporter.")
6+
super().__init__(key)
77
self.value = key
88

99
@override

tests/test_repr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ def test_ApprovalException():
66
assert "ApprovalException('hello')" == repr(ApprovalException('hello'))
77

88
def test_ReporterMissingException():
9-
assert "ReporterMissingException('MY_REPORTER')" == repr(ReporterMissingException('MY_REPORTER'))
9+
assert "ReporterMissingException('MY_REPORTER')" == repr(ReporterMissingException('MY_REPORTER'))
10+
assert "Could not find 'MY_REPORTER' in the environment, perhaps you need to configure your reporter." == str(ReporterMissingException('MY_REPORTER'))

0 commit comments

Comments
 (0)