Path 1: 563 calls (0.72)

TextIOWrapper (563)

1def _open_expected_file(self) -> TextIO:
2        try:
3            return open(self._test_file.expected_output, encoding="utf-8")
4        except FileNotFoundError:
5            return StringIO("")
            

Path 2: 222 calls (0.28)

StringIO (222)

FileNotFoundError (222)

1def _open_expected_file(self) -> TextIO:
2        try:
3            return open(self._test_file.expected_output, encoding="utf-8")
4        except FileNotFoundError:
5            return StringIO("")