Skip to content

Commit

Permalink
pythongh-111201: [pyrepl] Ensure optional platform-specific imports a…
Browse files Browse the repository at this point in the history
…re optional (pythonGH-119834)
  • Loading branch information
ambv authored and estyxx committed Jul 17, 2024
1 parent 598e4c4 commit a53cd5c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Lib/test/test_pyrepl/test_windows_console.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import itertools
import sys
import unittest
from _pyrepl.console import Event, Console
from _pyrepl.windows_console import (
MOVE_LEFT,
MOVE_RIGHT,
MOVE_UP,
MOVE_DOWN,
ERASE_IN_LINE,
)

from functools import partial
from typing import Iterable
from unittest import TestCase, main
from unittest.mock import MagicMock, call, patch, ANY
from unittest import TestCase
from unittest.mock import MagicMock, call

from .support import handle_all_events, code_to_events

try:
from _pyrepl.console import Event
from _pyrepl.windows_console import WindowsConsole
from _pyrepl.console import Event, Console
from _pyrepl.windows_console import (
WindowsConsole,
MOVE_LEFT,
MOVE_RIGHT,
MOVE_UP,
MOVE_DOWN,
ERASE_IN_LINE,
)
except ImportError:
pass

Expand Down

0 comments on commit a53cd5c

Please sign in to comment.