Updated bundle_root to work wherever ithe root is in relation to the library
This commit is contained in:
@@ -193,13 +193,8 @@ def test_unicode_values(manager):
|
||||
assert manager.t("welcome", name="Zoë 日本") == "Willkommen, Zoë 日本!"
|
||||
|
||||
|
||||
# According to the README/docstring, the unformatted text should be returned on
|
||||
# *any* formatting error ("a malformed or incomplete format string must not
|
||||
# disrupt UI"). ``_format`` only catches KeyError, IndexError and ValueError, so
|
||||
# these two cases currently raise AttributeError / TypeError. Remove the xfail
|
||||
# marker once ``_format`` is fixed.
|
||||
# @pytest.mark.xfail(strict=True, raises=(AttributeError, TypeError),
|
||||
# reason="_format() does not catch AttributeError/TypeError")
|
||||
# ``_format`` returns the unformatted text on *any* formatting error, including
|
||||
# AttributeError (``{name.attr}``) and TypeError (``{name[x]}``).
|
||||
@pytest.mark.parametrize(
|
||||
("key", "expected"),
|
||||
[("attr", "Wert: {name.nope}"), ("idx", "Wert: {name[x]}")],
|
||||
|
||||
Reference in New Issue
Block a user