core: support '' for explicitly set empty path set

This commit is contained in:
Dima Gerasimov 2020-06-01 23:45:26 +01:00
parent a267aeec5b
commit 3d7844b711
4 changed files with 16 additions and 7 deletions

View file

@ -102,6 +102,9 @@ def test_no_files():
'''
Test for empty matches. They work, but should result in warning
'''
assert get_files('') == ()
# todo test these for warnings?
assert get_files([]) == ()
assert get_files('bad*glob') == ()