Skip to content

Commit 17014e4

Browse files
authored
Remove dead code in test__xxsubinterpreters (GH-19826)
1 parent b66c0ff commit 17014e4

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Lib/test/test__xxsubinterpreters.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@
1919
##################################
2020
# helpers
2121

22-
def powerset(*sets):
23-
return itertools.chain.from_iterable(
24-
combinations(sets, r)
25-
for r in range(len(sets)+1))
26-
27-
2822
def _captured_script(script):
2923
r, w = os.pipe()
3024
indented = script.replace('\n', '\n ')
@@ -90,14 +84,6 @@ def _run_interp(id, source, shared, _mainns={}):
9084
interpreters.run_string(id, source, shared)
9185

9286

93-
def run_interp_threaded(id, source, **shared):
94-
def run():
95-
_run(id, source, shared)
96-
t = threading.Thread(target=run)
97-
t.start()
98-
t.join()
99-
100-
10187
class Interpreter(namedtuple('Interpreter', 'name id')):
10288

10389
@classmethod
@@ -786,12 +772,6 @@ def tearDown(self):
786772
self._fs.close()
787773
super().tearDown()
788774

789-
@property
790-
def fs(self):
791-
if self._fs is None:
792-
self._fs = FSFixture(self)
793-
return self._fs
794-
795775
def test_success(self):
796776
script, file = _captured_script('print("it worked!", end="")')
797777
with file:

0 commit comments

Comments
 (0)