Skip to content

Commit e9133d5

Browse files
Merge pull request #2 from python-xlib/master
Fix coverage submission (remove obsolete coverage.py import).
2 parents 1b816ec + 87debc6 commit e9133d5

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![Build Status](https://travis-ci.org/python-xlib/python-xlib.svg?branch=master)](https://travis-ci.org/python-xlib/python-xlib)
2+
[![codecov.io](https://codecov.io/github/python-xlib/python-xlib/coverage.svg?branch=master)](https://codecov.io/github/python-xlib/python-xlib?branch=master)
23

34
# The Python X Library
45

test/testall.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,10 @@
66
import unittest
77
import struct
88

9-
import coverage
10-
119
testfolder = os.path.abspath(os.path.dirname(__file__))
1210
package_root = os.path.abspath(os.path.join(testfolder, ".."))
1311
sys.path.append(package_root)
1412

15-
# needs to be called before importing the modules
16-
cov = coverage.coverage(branch = True, omit = os.path.join(package_root, 'examples', '*.py'))
17-
cov.start()
18-
1913
from Xlib.protocol import request, rq, event
2014
import Xlib.protocol.event
2115

@@ -53,15 +47,6 @@ def run_tests():
5347
unittest.defaultTestLoader.loadTestsFromModule(imported_mod))
5448

5549
unittest.TextTestRunner(verbosity=3).run(suite)
56-
cov.stop()
57-
#print(cov.analysis())
58-
print(cov.report())
59-
cov.html_report(
60-
directory = os.path.join(package_root, "Coverage_report"),
61-
omit = [os.path.join(package_root, 'examples', '*.py'),
62-
os.path.join(package_root, 'utils', '*.py'),
63-
os.path.join(package_root, 'test', '*.py'), ]
64-
)
6550

6651

6752
if __name__ == '__main__':

0 commit comments

Comments
 (0)