Skip to content

Commit 2bd8d82

Browse files
committed
removed debug messages
1 parent 232f9ac commit 2bd8d82

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

capsul/process/runprocess.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -624,10 +624,6 @@ def main():
624624
print(' ', value)
625625

626626
print()
627-
import sys
628-
for name in sorted(sys.modules):
629-
mod = sys.modules[name]
630-
print(name, ':', mod)
631627

632628
del aval, attribs, completion_engine, process
633629
sys.exit(0)

capsul/process/test/test_runprocess.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,12 @@ def test_python_m_capsul(self):
3737
self.assertEqual(ret, 0)
3838

3939
def test_run_process_help(self):
40-
#with open(os.devnull, 'wb') as f:
41-
#ret = subprocess.call([
42-
#sys.executable, "-m", "capsul.run",
43-
#"--process-help",
44-
#"capsul.process.test.test_runprocess.DummyProcess"
45-
#], stdout=f, stderr=f)
46-
ret = subprocess.call([
47-
sys.executable, "-m", "capsul.run",
48-
"--process-help",
49-
"capsul.process.test.test_runprocess.DummyProcess"
50-
])
40+
with open(os.devnull, 'wb') as f:
41+
ret = subprocess.call([
42+
sys.executable, "-m", "capsul.run",
43+
"--process-help",
44+
"capsul.process.test.test_runprocess.DummyProcess"
45+
], stdout=f, stderr=f)
5146
self.assertEqual(ret, 0)
5247

5348
def test_run_dummy_process(self):

0 commit comments

Comments
 (0)