This commit is contained in:
@@ -108,8 +108,8 @@ def test_config_with_strange_and_edge_keys():
|
||||
|
||||
# Check that dot-access fails for bad names
|
||||
for key in ["", "spaces in key", "[]", "class", "user.name", "hyphen-key", "123"]:
|
||||
with pytest.raises(AttributeError):
|
||||
_ = getattr(cfg, key)
|
||||
with pytest.raises(AttributeError):
|
||||
_ = getattr(cfg, key)
|
||||
|
||||
finally:
|
||||
os.remove(path)
|
||||
|
||||
Reference in New Issue
Block a user