@@ -436,7 +436,7 @@ def test_cli_default_collapsed_filename(self):
436436
437437 with (
438438 mock .patch ("sys.argv" , test_args ),
439- mock .patch ("profiling.sampling.sample ._is_process_running" , return_value = True ),
439+ mock .patch ("profiling.sampling.cli ._is_process_running" , return_value = True ),
440440 mock .patch ("profiling.sampling.cli.sample" ) as mock_sample ,
441441 ):
442442 main ()
@@ -476,7 +476,7 @@ def test_cli_custom_output_filenames(self):
476476 for test_args , expected_filename , expected_format in test_cases :
477477 with (
478478 mock .patch ("sys.argv" , test_args ),
479- mock .patch ("profiling.sampling.sample ._is_process_running" , return_value = True ),
479+ mock .patch ("profiling.sampling.cli ._is_process_running" , return_value = True ),
480480 mock .patch ("profiling.sampling.cli.sample" ) as mock_sample ,
481481 ):
482482 main ()
@@ -515,7 +515,7 @@ def test_argument_parsing_basic(self):
515515
516516 with (
517517 mock .patch ("sys.argv" , test_args ),
518- mock .patch ("profiling.sampling.sample ._is_process_running" , return_value = True ),
518+ mock .patch ("profiling.sampling.cli ._is_process_running" , return_value = True ),
519519 mock .patch ("profiling.sampling.cli.sample" ) as mock_sample ,
520520 ):
521521 main ()
@@ -537,7 +537,7 @@ def test_sort_options(self):
537537
538538 with (
539539 mock .patch ("sys.argv" , test_args ),
540- mock .patch ("profiling.sampling.sample ._is_process_running" , return_value = True ),
540+ mock .patch ("profiling.sampling.cli ._is_process_running" , return_value = True ),
541541 mock .patch ("profiling.sampling.cli.sample" ) as mock_sample ,
542542 ):
543543 main ()
@@ -551,7 +551,7 @@ def test_async_aware_flag_defaults_to_running(self):
551551
552552 with (
553553 mock .patch ("sys.argv" , test_args ),
554- mock .patch ("profiling.sampling.sample ._is_process_running" , return_value = True ),
554+ mock .patch ("profiling.sampling.cli ._is_process_running" , return_value = True ),
555555 mock .patch ("profiling.sampling.cli.sample" ) as mock_sample ,
556556 ):
557557 main ()
@@ -567,7 +567,7 @@ def test_async_aware_with_async_mode_all(self):
567567
568568 with (
569569 mock .patch ("sys.argv" , test_args ),
570- mock .patch ("profiling.sampling.sample ._is_process_running" , return_value = True ),
570+ mock .patch ("profiling.sampling.cli ._is_process_running" , return_value = True ),
571571 mock .patch ("profiling.sampling.cli.sample" ) as mock_sample ,
572572 ):
573573 main ()
@@ -582,7 +582,7 @@ def test_async_aware_default_is_none(self):
582582
583583 with (
584584 mock .patch ("sys.argv" , test_args ),
585- mock .patch ("profiling.sampling.sample ._is_process_running" , return_value = True ),
585+ mock .patch ("profiling.sampling.cli ._is_process_running" , return_value = True ),
586586 mock .patch ("profiling.sampling.cli.sample" ) as mock_sample ,
587587 ):
588588 main ()
0 commit comments