diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-15 15:08:27 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-15 15:08:27 -0500 |
commit | 50b37557df12f0ceb117860ce80a46e13b9d2beb (patch) | |
tree | 4d54327e967114943e01555414b83875108b62e3 | |
parent | 92de04ca5e44532f3fa78dece8df822557805373 (diff) | |
download | python-coveragepy-git-50b37557df12f0ceb117860ce80a46e13b9d2beb.tar.gz |
Fix two warnings
-rw-r--r-- | tests/test_process.py | 2 | ||||
-rw-r--r-- | tests/test_testing.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_process.py b/tests/test_process.py index 4d67897d..d77dfda6 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -1213,7 +1213,7 @@ class ProcessCoverageMixin(object): super(ProcessCoverageMixin, self).setUp() # Create the .pth file. - self.assert_(PTH_DIR) + self.assertTrue(PTH_DIR) pth_contents = "import coverage; coverage.process_startup()\n" pth_path = os.path.join(PTH_DIR, "subcover_{0}.pth".format(WORKER)) with open(pth_path, "w") as pth: diff --git a/tests/test_testing.py b/tests/test_testing.py index d0e75797..b74d08fb 100644 --- a/tests/test_testing.py +++ b/tests/test_testing.py @@ -144,6 +144,8 @@ class CoverageTestTest(CoverageTest): class CheckUniqueFilenamesTest(CoverageTest): """Tests of CheckUniqueFilenames.""" + run_in_temp_dir = False + class Stub(object): """A stand-in for the class we're checking.""" def __init__(self, x): |