Skip to content

Commit a83076a

Browse files
committed
debugging
1 parent c120801 commit a83076a

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

capsul/process/runprocess.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -613,10 +613,9 @@ def main():
613613

614614
print()
615615
import sys
616-
with open('/tmp/modules.txt', 'w') as f:
617-
for name in sorted(sys.modules):
618-
mod = sys.modules[name]
619-
print(name, ':', mod, file=f)
616+
for name in sorted(sys.modules):
617+
mod = sys.modules[name]
618+
print(name, ':', mod)
620619

621620
del aval, attribs, completion_engine, process
622621
sys.exit(0)

capsul/process/test/test_runprocess.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,17 @@ 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-
with open('/tmp/modules.txt') as f:
47-
for l in f.readlines():
48-
print(l, end='')
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+
])
4951
self.assertEqual(ret, 0)
5052

5153
def test_run_dummy_process(self):

0 commit comments

Comments
 (0)