diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-11-26 09:28:30 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-11-26 09:28:30 -0500 |
commit | df7bc8647d26ee93ea0fb213972bf9c47353e795 (patch) | |
tree | a32bc0c19a7bdcc5dcb98e628fbe35645b34fdc3 /tests | |
parent | 1a0d55751dda29b70240e06d5264544c0d45b845 (diff) | |
download | python-coveragepy-git-df7bc8647d26ee93ea0fb213972bf9c47353e795.tar.gz |
Enable pytest warnings, and fix/silence a few
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_files.py | 2 | ||||
-rw-r--r-- | tests/test_process.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_files.py b/tests/test_files.py index 2d22730e..ec0332eb 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -284,4 +284,4 @@ class WindowsFileTest(CoverageTest): super(WindowsFileTest, self).setUp() def test_actual_path(self): - self.assertEquals(actual_path(r'c:\Windows'), actual_path(r'C:\wINDOWS')) + self.assertEqual(actual_path(r'c:\Windows'), actual_path(r'C:\wINDOWS')) diff --git a/tests/test_process.py b/tests/test_process.py index cc91bd0c..02e23e72 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -1172,8 +1172,8 @@ class ProcessStartupTest(ProcessCoverageMixin, CoverageTest): # assert that there are *no* extra data files left over after a combine data_files = glob.glob(os.getcwd() + '/.coverage*') - self.assertEquals(len(data_files), 1, - "Expected only .coverage after combine, looks like there are " + \ + self.assertEqual(len(data_files), 1, + "Expected only .coverage after combine, looks like there are " "extra data files that were not cleaned up: %r" % data_files) |