File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -105,13 +105,6 @@ def location_default(cls):
105
105
def _location_default (self ):
106
106
return self .location_default ()
107
107
108
- @location .validator
109
- def location_validator (self , _ , location ):
110
- if not os .path .isdir (location ):
111
- raise ValueError (
112
- f"Persistent cache location '{ location } ' is not a directory"
113
- )
114
-
115
108
@cleanup_period .default
116
109
def cleanup_period_default (self ):
117
110
return int (os .environ .get (self .CLEANUP_ENV_VAR , 30 ))
Original file line number Diff line number Diff line change @@ -384,5 +384,5 @@ def test_persistent_hash_cache_not_dir(text_file):
384
384
"""
385
385
Test that an error is raised if the provided cache path is not a directory
386
386
"""
387
- with pytest .raises (ValueError , match = "is not a directory" ):
387
+ with pytest .raises (FileExistsError ):
388
388
PersistentCache (text_file .fspath )
You can’t perform that action at this time.
0 commit comments