summaryrefslogtreecommitdiffstats
path: root/rtemsspec/tests/test_items_itemcache.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-01-22 06:53:54 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-01-22 06:53:54 +0100
commit6f5da2219555276e8641a4418746e6c513186ce9 (patch)
tree938c26b06c618d0ba7c8983c4abfb12476cd1d3e /rtemsspec/tests/test_items_itemcache.py
parentitems: Improve identifier to item error message (diff)
downloadrtems-central-6f5da2219555276e8641a4418746e6c513186ce9.tar.bz2
items: Improve identifier to value error message
Diffstat (limited to 'rtemsspec/tests/test_items_itemcache.py')
-rw-r--r--rtemsspec/tests/test_items_itemcache.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/rtemsspec/tests/test_items_itemcache.py b/rtemsspec/tests/test_items_itemcache.py
index 483c8d43..2e6c64c7 100644
--- a/rtemsspec/tests/test_items_itemcache.py
+++ b/rtemsspec/tests/test_items_itemcache.py
@@ -164,6 +164,9 @@ def test_item_mapper(tmpdir):
match = r"item 'boom' relative to spec:/p specified by 'boom:bam' does not exist"
with pytest.raises(ValueError, match=match):
mapper.map("boom:bam", item, "blub")
+ match = r"cannot get value for 'blub/bam' of spec:/p specified by '.:bam'"
+ with pytest.raises(ValueError, match=match):
+ mapper.map(".:bam", item, "blub")
def test_empty_item_mapper():