aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2021-03-09 03:22:01 -0700
committerTim Harder <radhermit@gmail.com>2021-03-09 03:22:01 -0700
commita07cf18a52d91c7fd49babab11dbee65dea25689 (patch)
tree1c3c8c97f506ff807edf6336102c51542f91cfce /tests
parentdist.distutils_extensions: prepend built package directory to PYTHONPATH (diff)
downloadsnakeoil-a07cf18a52d91c7fd49babab11dbee65dea25689.tar.gz
snakeoil-a07cf18a52d91c7fd49babab11dbee65dea25689.tar.bz2
snakeoil-a07cf18a52d91c7fd49babab11dbee65dea25689.zip
mappings: OrderedFrozenSet: support slice notation
Diffstat (limited to 'tests')
-rw-r--r--tests/test_mappings.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_mappings.py b/tests/test_mappings.py
index 1692ac7..ca9cede 100644
--- a/tests/test_mappings.py
+++ b/tests/test_mappings.py
@@ -299,6 +299,7 @@ class TestOrderedFrozenSet:
# test indexing support
for i in range(9):
assert s[i] == i
+ assert list(s[1:]) == list(range(1, 9))
with pytest.raises(IndexError, match='index out of range'):
s[9]