@@ -1574,9 +1574,10 @@ class ProcessStartupWithSourceTest(ProcessCoverageMixin, CoverageTest):
1574
1574
1575
1575
"""
1576
1576
1577
- def assert_pth_and_source_work_together (
1578
- self , dashm , package , source
1579
- ):
1577
+ @pytest .mark .parametrize ("dashm" , ["-m" , "" ])
1578
+ @pytest .mark .parametrize ("package" , ["pkg" , "" ])
1579
+ @pytest .mark .parametrize ("source" , ["main" , "sub" ])
1580
+ def test_pth_and_source_work_together (self , dashm , package , source ):
1580
1581
"""Run the test for a particular combination of factors.
1581
1582
1582
1583
The arguments are all strings:
@@ -1641,27 +1642,3 @@ def path(basename):
1641
1642
summary = line_counts (data )
1642
1643
assert summary [source + '.py' ] == 3
1643
1644
assert len (summary ) == 1
1644
-
1645
- def test_dashm_main (self ):
1646
- self .assert_pth_and_source_work_together ('-m' , '' , 'main' )
1647
-
1648
- def test_script_main (self ):
1649
- self .assert_pth_and_source_work_together ('' , '' , 'main' )
1650
-
1651
- def test_dashm_sub (self ):
1652
- self .assert_pth_and_source_work_together ('-m' , '' , 'sub' )
1653
-
1654
- def test_script_sub (self ):
1655
- self .assert_pth_and_source_work_together ('' , '' , 'sub' )
1656
-
1657
- def test_dashm_pkg_main (self ):
1658
- self .assert_pth_and_source_work_together ('-m' , 'pkg' , 'main' )
1659
-
1660
- def test_script_pkg_main (self ):
1661
- self .assert_pth_and_source_work_together ('' , 'pkg' , 'main' )
1662
-
1663
- def test_dashm_pkg_sub (self ):
1664
- self .assert_pth_and_source_work_together ('-m' , 'pkg' , 'sub' )
1665
-
1666
- def test_script_pkg_sub (self ):
1667
- self .assert_pth_and_source_work_together ('' , 'pkg' , 'sub' )
0 commit comments