# HG changeset patch # User Franz Glasner # Date 1642157826 -3600 # Node ID c56971e854964d5a7c4a304cd983fe5202350cf3 # Parent e3a23e9242a0b3575f331f0c60f6fc9337f87051 FIX: Arguments when calling .getvarl() and .getvarl_s() diff -r e3a23e9242a0 -r c56971e85496 tests/test.py --- a/tests/test.py Thu Jan 13 22:27:20 2022 +0100 +++ b/tests/test.py Fri Jan 14 11:57:06 2022 +0100 @@ -469,14 +469,14 @@ # The default must be the original and not a copy dflt = {"foo2": "bar2"} cfg = self._load(os.path.join(TESTDATADIR, "conf20.yml")) - self.assertTrue(cfg.getvarl((u"non", u"existing", u"key"), + self.assertTrue(cfg.getvarl(u"non", u"existing", u"key", default=dflt) is dflt) def test15c_getvarl_s_with_original_default(self): # The default must be the original and not a copy dflt = {"foo3": "bar3"} cfg = self._load(os.path.join(TESTDATADIR, "conf20.yml")) - self.assertTrue(cfg.getvarl_s((u"non", u"existing", u"key4"), + self.assertTrue(cfg.getvarl_s(u"non", u"existing", u"key4", default=dflt) is dflt) def test16_getintvar_s_with_default(self):