File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 4
4
import io
5
5
import pickle
6
6
from pathlib import Path
7
- from tempfile import mkdtemp
8
7
9
8
import pytest
10
9
@@ -21,13 +20,16 @@ def _create_test_config():
21
20
)
22
21
23
22
24
- def test_config_paths ( ):
25
- base_compiledir = mkdtemp ()
26
- assert configdefaults . _filter_base_compiledir ( str ( base_compiledir )) == Path (
27
- base_compiledir
23
+ def test_base_compiledir_str ( tmp_path : Path ):
24
+ base_compiledir = tmp_path
25
+ assert (
26
+ configdefaults . _filter_base_compiledir ( str ( base_compiledir )) == base_compiledir
28
27
)
29
- compiledir = mkdtemp ()
30
- assert configdefaults ._filter_compiledir (str (compiledir )) == Path (compiledir )
28
+
29
+
30
+ def test_compiledir_str (tmp_path : Path ):
31
+ compiledir = tmp_path
32
+ assert configdefaults ._filter_compiledir (str (compiledir )) == compiledir
31
33
32
34
33
35
def test_invalid_default ():
You can’t perform that action at this time.
0 commit comments