[Python-checkins] devinabox: Tweak how some stuff is calculated and remove some debugging stuff.

brett.cannon python-checkins at python.org
Thu Nov 15 15:22:44 CET 2012


http://hg.python.org/devinabox/rev/d2c984dd06d4
changeset:   43:d2c984dd06d4
user:        Brett Cannon <brett at python.org>
date:        Wed Nov 14 23:36:04 2012 -0500
summary:
  Tweak how some stuff is calculated and remove some debugging stuff.

files:
  make_a_box.py |  7 ++++---
  1 files changed, 4 insertions(+), 3 deletions(-)


diff --git a/make_a_box.py b/make_a_box.py
--- a/make_a_box.py
+++ b/make_a_box.py
@@ -151,9 +151,11 @@
             # 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):
@@ -164,8 +166,7 @@
                                     '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')

-- 
Repository URL: http://hg.python.org/devinabox


More information about the Python-checkins mailing list