Skip to content

Commit d3613e2

Browse files
committed
test coverage
1 parent f25821c commit d3613e2

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

DOCUMENTATION.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2477,8 +2477,8 @@ once at the end of the parsing process. As a result, in nested sub-configs,
24772477
references to nodes must be either relative or parser-level absolute to function
24782478
correctly. Alternatively, you can
24792479
``set_parsing_settings(omegaconf_absolute_to_relative_paths=True)`` to enable
2480-
automatic conversion of absolute paths to relative ones during parsing. However,
2481-
this automatic conversion does not work for every possible case.
2480+
automatic conversion of absolute paths to relative ones during parsing. Be aware
2481+
that this automatic conversion does not work for every possible case.
24822482

24832483
Based on community feedback, this mode may become the default ``omegaconf`` mode
24842484
in version 5.0.0. This change would introduce a breaking modification, as

jsonargparse_tests/test_parsing_settings.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,11 @@ def test_optionals_as_positionals_unsupported_arguments(parser):
195195
def test_set_stubs_resolver_allow_py_files_failure():
196196
with pytest.raises(ValueError, match="stubs_resolver_allow_py_files must be a boolean"):
197197
set_parsing_settings(stubs_resolver_allow_py_files="invalid")
198+
199+
200+
# omegaconf_absolute_to_relative_paths
201+
202+
203+
def test_set_omegaconf_absolute_to_relative_paths_failure():
204+
with pytest.raises(ValueError, match="omegaconf_absolute_to_relative_paths must be a boolean"):
205+
set_parsing_settings(omegaconf_absolute_to_relative_paths="invalid")

0 commit comments

Comments
 (0)