Mercurial > hgrepos > Python > libs > ConfigMix
diff tests/test.py @ 334:a04cd5dbcd2c
By default quote also the characters "{", "}", "[" and "]" because they are special in YAML
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Fri, 07 May 2021 10:35:21 +0200 |
| parents | 5c2c72d26b63 |
| children | 97d47c5150d6 |
line wrap: on
line diff
--- a/tests/test.py Fri May 07 09:31:22 2021 +0200 +++ b/tests/test.py Fri May 07 10:35:21 2021 +0200 @@ -782,7 +782,8 @@ self._cfg.getvar_s("events.qc-2021%x2e1-5G-summit.xref.%x23")) def test_quoting_and_unquoting_are_inverse(self): - for c in """abc09'"#:|%./""": + for c in """abc09'"#:|%.{}[]/""": + print c self.assertEqual(c, self._cfg.unquote(self._cfg.quote(c))) def test_namespace_quoting(self):
