# HG changeset patch # User Franz Glasner # Date 1639525730 -3600 # Node ID d6be958413801efd2954c4b0150a7d796b6372f4 # Parent 27112bb4a5b9073b4d3c48a67046e945389a3fa6 Add a test for proper exception formatting when .rebind() raises a KeyError diff -r 27112bb4a5b9 -r d6be95841380 tests/test.py --- a/tests/test.py Wed Dec 15 00:17:27 2021 +0100 +++ b/tests/test.py Wed Dec 15 00:48:50 2021 +0100 @@ -1279,6 +1279,8 @@ def test_root_non_existing_raises(self): cfg = configmix.load(os.path.join(TESTDATADIR, "conf10.py")) self.assertRaises(KeyError, cfg.jailed, root=u"tree-non-existing") + self.assertRaises( + KeyError, cfg.jailed, rootpath=(u"non", u"existing", u"tree")) def test_rootpath(self): cfg = configmix.load(os.path.join(TESTDATADIR, "conf10.py"))