summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-05-01 02:34:22 +0200
committerGitHub <noreply@github.com>2020-05-01 02:34:22 +0200
commit17014e45864cefd37660b054fb71fa2e177690ef (patch)
tree6948572c73a3889a6be4177ecda2d946021f11b9
parentb66c0ff8af0c1a4adc6908897b2d05afc78cc27e (diff)
downloadcpython-git-17014e45864cefd37660b054fb71fa2e177690ef.tar.gz
Remove dead code in test__xxsubinterpreters (GH-19826)
-rw-r--r--Lib/test/test__xxsubinterpreters.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/Lib/test/test__xxsubinterpreters.py b/Lib/test/test__xxsubinterpreters.py
index 44f4d3fa0f..80eff19152 100644
--- a/Lib/test/test__xxsubinterpreters.py
+++ b/Lib/test/test__xxsubinterpreters.py
@@ -19,12 +19,6 @@ interpreters = support.import_module('_xxsubinterpreters')
##################################
# helpers
-def powerset(*sets):
- return itertools.chain.from_iterable(
- combinations(sets, r)
- for r in range(len(sets)+1))
-
-
def _captured_script(script):
r, w = os.pipe()
indented = script.replace('\n', '\n ')
@@ -90,14 +84,6 @@ def _run_interp(id, source, shared, _mainns={}):
interpreters.run_string(id, source, shared)
-def run_interp_threaded(id, source, **shared):
- def run():
- _run(id, source, shared)
- t = threading.Thread(target=run)
- t.start()
- t.join()
-
-
class Interpreter(namedtuple('Interpreter', 'name id')):
@classmethod
@@ -786,12 +772,6 @@ class RunStringTests(TestBase):
self._fs.close()
super().tearDown()
- @property
- def fs(self):
- if self._fs is None:
- self._fs = FSFixture(self)
- return self._fs
-
def test_success(self):
script, file = _captured_script('print("it worked!", end="")')
with file: