Skip to content

Commit 0804a60

Browse files
DavidSpickettaokblast
authored andcommitted
[lldb][test] Avoid Windows import error in TestDriverWithClosedSTDIO.py
Test added in llvm#164905, skipped by llvm#165318, but that change did not guard the import. This import is run when we parse the file which happens before any skips are applied.
1 parent ddda156 commit 0804a60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lldb/test/API/driver/stdio_closed/TestDriverWithClosedSTDIO.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
import os
99
import sys
1010
import socket
11-
import fcntl
11+
12+
if os.name != "nt":
13+
import fcntl
1214

1315
import lldbsuite.test.lldbutil as lldbutil
1416
from lldbsuite.test.lldbtest import *

0 commit comments

Comments
 (0)