summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pathlib/test_pathlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_pathlib/test_pathlib.py')
-rw-r--r--Lib/test/test_pathlib/test_pathlib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pathlib/test_pathlib.py b/Lib/test/test_pathlib/test_pathlib.py
index 4fd2aac..3df354e 100644
--- a/Lib/test/test_pathlib/test_pathlib.py
+++ b/Lib/test/test_pathlib/test_pathlib.py
@@ -1108,8 +1108,8 @@ class PathTest(test_pathlib_abc.DummyPathTest, PurePathTest):
self.assertTrue(R.is_mount())
self.assertFalse((R / '\udfff').is_mount())
- def test_passing_kwargs_deprecated(self):
- with self.assertWarns(DeprecationWarning):
+ def test_passing_kwargs_errors(self):
+ with self.assertRaises(TypeError):
self.cls(foo="bar")
def setUpWalk(self):