Skip to content

Commit 7062ec8

Browse files
committed
Just passed all unittests
1 parent 36ded7b commit 7062ec8

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

nipype/interfaces/tests/test_runtime_profiler.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ def _use_gb_ram(num_gb):
6363
'''
6464
Function to consume GB of memory
6565
'''
66-
66+
6767
# Eat 1 GB of memory for 1 second
6868
gb_str = ' ' * int(num_gb*1024.0**3)
69-
69+
7070
# Spin CPU
7171
ctr = 0
7272
while ctr < 50e6:
7373
ctr += 1
74-
74+
7575
# Clear memory
7676
del ctr
7777
del gb_str
@@ -199,12 +199,6 @@ def _collect_range_runtime_stats(self, num_threads):
199199
# Return dataframe
200200
return runtime_results_df
201201

202-
def test_collect_range(self):
203-
num_threads = 8
204-
df = self._collect_range_runtime_stats(num_threads)
205-
206-
df.to_csv('/root/%d_thread_df.csv' % num_threads)
207-
208202
# Test node
209203
def _run_cmdline_workflow(self, num_gb, num_threads):
210204
'''
@@ -359,7 +353,7 @@ def _run_function_workflow(self, num_gb, num_threads):
359353

360354
# Test resources were used as expected in cmdline interface
361355
@unittest.skipIf(run_profiler == False, skip_profile_msg)
362-
def tiest_cmdline_profiling(self):
356+
def test_cmdline_profiling(self):
363357
'''
364358
Test runtime profiler correctly records workflow RAM/CPUs consumption
365359
from a cmdline function
@@ -401,7 +395,7 @@ def tiest_cmdline_profiling(self):
401395

402396
# Test resources were used as expected
403397
@unittest.skipIf(run_profiler == False, skip_profile_msg)
404-
def tiest_function_profiling(self):
398+
def test_function_profiling(self):
405399
'''
406400
Test runtime profiler correctly records workflow RAM/CPUs consumption
407401
from a python function

0 commit comments

Comments
 (0)