Skip to content

Commit 74c5ad1

Browse files
committed
Remove unnecessary imports from tests
1 parent f8f48f0 commit 74c5ad1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Lib/test/test_external_inspection.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class TestGetStackTrace(unittest.TestCase):
2929
def test_remote_stack_trace(self):
3030
# Spawn a process with some realistic Python code
3131
script = textwrap.dedent("""\
32-
import time, sys, os
32+
import time, sys
3333
def bar():
3434
for x in range(100):
3535
if x == 50:
@@ -82,9 +82,7 @@ def test_async_remote_stack_trace(self):
8282
script = textwrap.dedent("""\
8383
import asyncio
8484
import time
85-
import os
8685
import sys
87-
import test.test_asyncio.test_stack as ts
8886
8987
def c5():
9088
fifo_path = sys.argv[1]
@@ -155,9 +153,7 @@ def test_asyncgen_remote_stack_trace(self):
155153
script = textwrap.dedent("""\
156154
import asyncio
157155
import time
158-
import os
159156
import sys
160-
import test.test_asyncio.test_stack as ts
161157
162158
async def gen_nested_call():
163159
fifo_path = sys.argv[1]
@@ -211,9 +207,7 @@ def test_async_gather_remote_stack_trace(self):
211207
script = textwrap.dedent("""\
212208
import asyncio
213209
import time
214-
import os
215210
import sys
216-
import test.test_asyncio.test_stack as ts
217211
218212
async def deep():
219213
await asyncio.sleep(0)

0 commit comments

Comments
 (0)