diff options
| author | Bert JW Regeer <bertjw@regeer.org> | 2020-05-04 00:14:30 -0700 |
|---|---|---|
| committer | Bert JW Regeer <bertjw@regeer.org> | 2020-05-06 19:42:05 -0700 |
| commit | 72eca2f8e82f1af20e433218719d99e7627d5650 (patch) | |
| tree | ca7c518cbedffc83cd6a45296287c38c5acb16b6 | |
| parent | 66fc1ccc27b445dfadf16b09a7e838f6aac21899 (diff) | |
| download | pyramid-72eca2f8e82f1af20e433218719d99e7627d5650.tar.gz pyramid-72eca2f8e82f1af20e433218719d99e7627d5650.tar.bz2 pyramid-72eca2f8e82f1af20e433218719d99e7627d5650.zip | |
Fix tests that depend on the test runner
| -rw-r--r-- | tests/test_path.py | 4 | ||||
| -rw-r--r-- | tests/test_util.py | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_path.py b/tests/test_path.py index 384460fb1..c9cfde2b6 100644 --- a/tests/test_path.py +++ b/tests/test_path.py @@ -101,10 +101,10 @@ class TestCallerPackage(unittest.TestCase): self.assertEqual(result, tests) def test_it_level_3(self): - import unittest + import _pytest result = self._callFUT(3) - self.assertEqual(result, unittest) + self.assertEqual(result, _pytest) def test_it_package(self): import tests diff --git a/tests/test_util.py b/tests/test_util.py index 93493c683..f79cdeb85 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -492,8 +492,7 @@ class Test_object_description(unittest.TestCase): def test_method(self): self.assertEqual( self._callFUT(self.test_method), - 'method test_method of class tests.test_util.' - 'Test_object_description', + 'function tests.test_util.test_method', ) def test_class(self): |
