summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2020-05-28 16:34:40 -0700
committerBert JW Regeer <bertjw@regeer.org>2020-05-28 16:34:40 -0700
commit77c1505ab529759c86c2c168c415ed05a635cebb (patch)
tree5e85c9f1d0361fcf7a5d3296832749e05012c1d1 /tests
parent683bc742f7b08db563f3385796809c09babf004b (diff)
downloadpyramid-77c1505ab529759c86c2c168c415ed05a635cebb.tar.gz
pyramid-77c1505ab529759c86c2c168c415ed05a635cebb.tar.bz2
pyramid-77c1505ab529759c86c2c168c415ed05a635cebb.zip
Revert "Fix tests that depend on the test runner"
This reverts commit 72eca2f8e82f1af20e433218719d99e7627d5650.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_path.py4
-rw-r--r--tests/test_util.py3
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_path.py b/tests/test_path.py
index c9cfde2b6..384460fb1 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 _pytest
+ import unittest
result = self._callFUT(3)
- self.assertEqual(result, _pytest)
+ self.assertEqual(result, unittest)
def test_it_package(self):
import tests
diff --git a/tests/test_util.py b/tests/test_util.py
index 8ed082ee4..0fb975f66 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -492,7 +492,8 @@ class Test_object_description(unittest.TestCase):
def test_method(self):
self.assertEqual(
self._callFUT(self.test_method),
- 'function tests.test_util.test_method',
+ 'method test_method of class tests.test_util.'
+ 'Test_object_description',
)
def test_class(self):