161 if not options.cover_stdlib: |
161 if not options.cover_stdlib: |
162 # Exclude as system paths (ignoring empty strings seen on win) |
162 # Exclude as system paths (ignoring empty strings seen on win) |
163 omit += [x for x in sys.path if x != ''] |
163 omit += [x for x in sys.path if x != ''] |
164 omit = ','.join(omit) |
164 omit = ','.join(omit) |
165 os.chdir(PYTHONDIR) |
165 os.chdir(PYTHONDIR) |
166 cmd = '"%s" "%s" -r "--omit=%s"' % ( |
166 cmd = '"%s" "%s" -i -r "--omit=%s"' % ( |
167 sys.executable, os.path.join(TESTDIR, 'coverage.py'), omit) |
167 sys.executable, os.path.join(TESTDIR, 'coverage.py'), omit) |
168 vlog("# Running: "+cmd) |
168 vlog("# Running: "+cmd) |
169 os.system(cmd) |
169 os.system(cmd) |
170 if options.annotate: |
170 if options.annotate: |
171 adir = os.path.join(TESTDIR, 'annotated') |
171 adir = os.path.join(TESTDIR, 'annotated') |
172 if not os.path.isdir(adir): |
172 if not os.path.isdir(adir): |
173 os.mkdir(adir) |
173 os.mkdir(adir) |
174 cmd = '"%s" "%s" -a "--directory=%s" "--omit=%s"' % ( |
174 cmd = '"%s" "%s" -i -a "--directory=%s" "--omit=%s"' % ( |
175 sys.executable, os.path.join(TESTDIR, 'coverage.py'), |
175 sys.executable, os.path.join(TESTDIR, 'coverage.py'), |
176 adir, omit) |
176 adir, omit) |
177 vlog("# Running: "+cmd) |
177 vlog("# Running: "+cmd) |
178 os.system(cmd) |
178 os.system(cmd) |
179 |
179 |