Commits

Brett Cannon  committed d2c984d Draft

Tweak how some stuff is calculated and remove some debugging stuff.

  • Participants
  • Parent commits 9b21387

Comments (0)

Files changed (1)

File make_a_box.py

             # XXX clean up tracer.so; distribute?
 
     def generate_coveragepy_command(self, command, *args):
+        exclude = '{},{}'.format(os.path.join('Lib', 'test', '*'),
+                                 os.path.join('Lib', '*', 'tests', '*'))
         return [self.executable, self.coveragepy_dir, command,
                 '--include', os.path.join(self.cpython_dir, 'Lib', '*'),
-                '--omit', '"Lib/test/*,Lib/*/tests/*"'] + list(args)
+                '--omit', exclude] + list(args)
 
     @contextlib.contextmanager
     def run_coveragepy(self):
                                     'fullcoverage')
         env = os.environ.copy()
         env['PYTHONPATH'] = fullcoverage
-        cmd = self.generate_coveragepy_command('run', '--pylib', regrtest_path,
-                                               'test_imp')
+        cmd = self.generate_coveragepy_command('run', '--pylib', regrtest_path)
         subprocess.check_call(cmd, env=env)
         yield
         os.unlink('.coverage')