diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2010-06-21 23:09:05 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-06-21 23:09:05 -0400 |
| commit | d0755b95a5f3c1745a20644d4c0703bc639e518d (patch) | |
| tree | 861f4be58d52fa25bbad5de59ffd9bf5d4f2f8f4 /test/modules | |
| parent | 3672e43632c3387e746bcb93e40e86ab30446d0c (diff) | |
| download | python-coveragepy-d0755b95a5f3c1745a20644d4c0703bc639e518d.tar.gz | |
Re-vamp the tests for omit and include, and add source.
Diffstat (limited to 'test/modules')
| -rw-r--r-- | test/modules/pkg1/__init__.py | 0 | ||||
| -rw-r--r-- | test/modules/pkg1/p1a.py | 5 | ||||
| -rw-r--r-- | test/modules/pkg1/p1b.py | 3 | ||||
| -rw-r--r-- | test/modules/pkg2/__init__.py | 0 | ||||
| -rw-r--r-- | test/modules/pkg2/p2a.py | 3 | ||||
| -rw-r--r-- | test/modules/pkg2/p2b.py | 3 | ||||
| -rw-r--r-- | test/modules/usepkgs.py | 2 |
7 files changed, 16 insertions, 0 deletions
diff --git a/test/modules/pkg1/__init__.py b/test/modules/pkg1/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/modules/pkg1/__init__.py diff --git a/test/modules/pkg1/p1a.py b/test/modules/pkg1/p1a.py new file mode 100644 index 0000000..be5fcdd --- /dev/null +++ b/test/modules/pkg1/p1a.py @@ -0,0 +1,5 @@ +import os, sys + +# Invoke functions in os and sys so we can see if we measure code there. +x = sys.getcheckinterval() +y = os.getcwd() diff --git a/test/modules/pkg1/p1b.py b/test/modules/pkg1/p1b.py new file mode 100644 index 0000000..59d6fb5 --- /dev/null +++ b/test/modules/pkg1/p1b.py @@ -0,0 +1,3 @@ +x = 1 +y = 2 +z = 3 diff --git a/test/modules/pkg2/__init__.py b/test/modules/pkg2/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/modules/pkg2/__init__.py diff --git a/test/modules/pkg2/p2a.py b/test/modules/pkg2/p2a.py new file mode 100644 index 0000000..b606711 --- /dev/null +++ b/test/modules/pkg2/p2a.py @@ -0,0 +1,3 @@ +q = 1 +r = 1 +s = 1 diff --git a/test/modules/pkg2/p2b.py b/test/modules/pkg2/p2b.py new file mode 100644 index 0000000..7a34e2c --- /dev/null +++ b/test/modules/pkg2/p2b.py @@ -0,0 +1,3 @@ +t = 1 +u = 1 +v = 1 diff --git a/test/modules/usepkgs.py b/test/modules/usepkgs.py new file mode 100644 index 0000000..208e3f3 --- /dev/null +++ b/test/modules/usepkgs.py @@ -0,0 +1,2 @@ +import pkg1.p1a, pkg1.p1b +import pkg2.p2a, pkg2.p2b |
