Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Jun 26, 2024
1 parent 03f04bf commit bc03ac0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Lib/test/test_pyrepl/test_pyrepl.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ def test_globals_from_file_passed_included_in_repl_globals(self):
output, exit_code = self.run_repl(
["FOO", "exit"], main_module=str(fake_main)
)
if "can\'t use pyrepl" in output:
if "can't use pyrepl" in output:
self.skipTest("pyrepl not available")
self.assertEqual(exit_code, 0)
self.assertIn("42", output)
Expand All @@ -878,12 +878,12 @@ def test_dumb_terminal_exits_cleanly(self):
self.assertNotIn("Traceback", output)

def run_repl(
self,
repl_input: str | list[str],
env: dict | None = None,
*,
main_module: str | None = None
) -> tuple[str, int]:
self,
repl_input: str | list[str],
env: dict | None = None,
*,
main_module: str | None = None,
) -> tuple[str, int]:
master_fd, slave_fd = pty.openpty()
repl_args = [sys.executable, "-u", "-i"]
if main_module is not None:
Expand Down

0 comments on commit bc03ac0

Please sign in to comment.