From d2ef0b1e323c85e9a7fc3782bc4d5cd5511d9a74 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 1 Jun 2011 08:19:46 -0400 Subject: Move some test modules to keep them out of pylint's hair. --HG-- rename : test/othermods/__init__.py => test/moremodules/othermods/__init__.py rename : test/othermods/othera.py => test/moremodules/othermods/othera.py rename : test/othermods/otherb.py => test/moremodules/othermods/otherb.py rename : test/othermods/sub/__init__.py => test/moremodules/othermods/sub/__init__.py rename : test/othermods/sub/osa.py => test/moremodules/othermods/sub/osa.py rename : test/othermods/sub/osb.py => test/moremodules/othermods/sub/osb.py --- test/moremodules/othermods/__init__.py | 0 test/moremodules/othermods/othera.py | 2 ++ test/moremodules/othermods/otherb.py | 2 ++ test/moremodules/othermods/sub/__init__.py | 0 test/moremodules/othermods/sub/osa.py | 2 ++ test/moremodules/othermods/sub/osb.py | 2 ++ test/othermods/__init__.py | 0 test/othermods/othera.py | 2 -- test/othermods/otherb.py | 2 -- test/othermods/sub/__init__.py | 0 test/othermods/sub/osa.py | 2 -- test/othermods/sub/osb.py | 2 -- test/test_api.py | 2 +- test/test_summary.py | 1 + 14 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 test/moremodules/othermods/__init__.py create mode 100644 test/moremodules/othermods/othera.py create mode 100644 test/moremodules/othermods/otherb.py create mode 100644 test/moremodules/othermods/sub/__init__.py create mode 100644 test/moremodules/othermods/sub/osa.py create mode 100644 test/moremodules/othermods/sub/osb.py delete mode 100644 test/othermods/__init__.py delete mode 100644 test/othermods/othera.py delete mode 100644 test/othermods/otherb.py delete mode 100644 test/othermods/sub/__init__.py delete mode 100644 test/othermods/sub/osa.py delete mode 100644 test/othermods/sub/osb.py (limited to 'test') diff --git a/test/moremodules/othermods/__init__.py b/test/moremodules/othermods/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/test/moremodules/othermods/othera.py b/test/moremodules/othermods/othera.py new file mode 100644 index 00000000..78896928 --- /dev/null +++ b/test/moremodules/othermods/othera.py @@ -0,0 +1,2 @@ +o = 1 +p = 2 diff --git a/test/moremodules/othermods/otherb.py b/test/moremodules/othermods/otherb.py new file mode 100644 index 00000000..2bd8a441 --- /dev/null +++ b/test/moremodules/othermods/otherb.py @@ -0,0 +1,2 @@ +q = 3 +r = 4 diff --git a/test/moremodules/othermods/sub/__init__.py b/test/moremodules/othermods/sub/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/test/moremodules/othermods/sub/osa.py b/test/moremodules/othermods/sub/osa.py new file mode 100644 index 00000000..0139d28b --- /dev/null +++ b/test/moremodules/othermods/sub/osa.py @@ -0,0 +1,2 @@ +s = 5 +t = 6 diff --git a/test/moremodules/othermods/sub/osb.py b/test/moremodules/othermods/sub/osb.py new file mode 100644 index 00000000..b024b148 --- /dev/null +++ b/test/moremodules/othermods/sub/osb.py @@ -0,0 +1,2 @@ +u = 7 +v = 8 diff --git a/test/othermods/__init__.py b/test/othermods/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/othermods/othera.py b/test/othermods/othera.py deleted file mode 100644 index 78896928..00000000 --- a/test/othermods/othera.py +++ /dev/null @@ -1,2 +0,0 @@ -o = 1 -p = 2 diff --git a/test/othermods/otherb.py b/test/othermods/otherb.py deleted file mode 100644 index 2bd8a441..00000000 --- a/test/othermods/otherb.py +++ /dev/null @@ -1,2 +0,0 @@ -q = 3 -r = 4 diff --git a/test/othermods/sub/__init__.py b/test/othermods/sub/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/othermods/sub/osa.py b/test/othermods/sub/osa.py deleted file mode 100644 index 0139d28b..00000000 --- a/test/othermods/sub/osa.py +++ /dev/null @@ -1,2 +0,0 @@ -s = 5 -t = 6 diff --git a/test/othermods/sub/osb.py b/test/othermods/sub/osb.py deleted file mode 100644 index b024b148..00000000 --- a/test/othermods/sub/osb.py +++ /dev/null @@ -1,2 +0,0 @@ -u = 7 -v = 8 diff --git a/test/test_api.py b/test/test_api.py index ae31404d..1805c39c 100644 --- a/test/test_api.py +++ b/test/test_api.py @@ -337,10 +337,10 @@ class SourceOmitIncludeTest(CoverageTest): def setUp(self): super(SourceOmitIncludeTest, self).setUp() # Parent class saves and restores sys.path, we can just modify it. - #sys.path.append(self.nice_file(os.path.dirname(__file__), 'modules')) self.old_dir = os.getcwd() os.chdir(self.nice_file(os.path.dirname(__file__), 'modules')) sys.path.append(".") + sys.path.append("../moremodules") def tearDown(self): os.chdir(self.old_dir) diff --git a/test/test_summary.py b/test/test_summary.py index b4b99380..306ce883 100644 --- a/test/test_summary.py +++ b/test/test_summary.py @@ -139,6 +139,7 @@ class SummaryTest2(CoverageTest): super(SummaryTest2, self).setUp() # Parent class saves and restores sys.path, we can just modify it. sys.path.append(self.nice_file(os.path.dirname(__file__), 'modules')) + sys.path.append(self.nice_file(os.path.dirname(__file__), 'moremodules')) def test_empty_files(self): # Shows that empty files like __init__.py are listed as having zero -- cgit v1.2.1