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 | 38d7d50b4815a4539829dee63fd79a617bf58f24 (patch) | |
tree | 14a7a4384e505fbb462f1fa3590bceaabb112fe6 /test/modules | |
parent | 6fcedaecffc79a07bc62c11c5b0af7bd7c16ca2a (diff) | |
download | python-coveragepy-git-38d7d50b4815a4539829dee63fd79a617bf58f24.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 00000000..e69de29b --- /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 00000000..be5fcdd3 --- /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 00000000..59d6fb54 --- /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 00000000..e69de29b --- /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 00000000..b606711d --- /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 00000000..7a34e2c6 --- /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 00000000..208e3f30 --- /dev/null +++ b/test/modules/usepkgs.py @@ -0,0 +1,2 @@ +import pkg1.p1a, pkg1.p1b +import pkg2.p2a, pkg2.p2b |