Skip to content

Commit af97ca0

Browse files
committed
Drop ununsed imports
1 parent 6f11d8f commit af97ca0

File tree

1 file changed

+13
-25
lines changed

1 file changed

+13
-25
lines changed
Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
import socket
2-
from pathlib import Path
3-
from tempfile import TemporaryDirectory
4-
5-
import anyio
6-
from pexpect.fdpexpect import fdspawn
7-
81
from jumpstarter.common.utils import serve
92
from jumpstarter.drivers.dutlink.base import Dutlink
103

@@ -16,28 +9,23 @@ def test_drivers_dutlink():
169
storage_device="/dev/null",
1710
)
1811
) as client:
19-
with TemporaryDirectory() as tempdir:
20-
socketpath = Path(tempdir) / "socket"
21-
22-
listener = client.portal.call(anyio.create_unix_listener, socketpath)
23-
24-
with client.console.expect() as expect:
25-
expect.send("\x02" * 5)
12+
with client.console.expect() as expect:
13+
expect.send("\x02" * 5)
2614

27-
expect.send("about\r\n")
28-
expect.expect("Jumpstarter test-harness")
15+
expect.send("about\r\n")
16+
expect.expect("Jumpstarter test-harness")
2917

30-
expect.send("console\r\n")
31-
expect.expect("Entering console mode")
18+
expect.send("console\r\n")
19+
expect.expect("Entering console mode")
3220

33-
client.power.off()
21+
client.power.off()
3422

35-
client.storage.write("/dev/null")
36-
client.storage.dut()
23+
client.storage.write("/dev/null")
24+
client.storage.dut()
3725

38-
client.power.on()
26+
client.power.on()
3927

40-
expect.send("\x02" * 5)
41-
expect.expect("Exiting console mode")
28+
expect.send("\x02" * 5)
29+
expect.expect("Exiting console mode")
4230

43-
client.power.off()
31+
client.power.off()

0 commit comments

Comments
 (0)