File tree 2 files changed +8
-10
lines changed
2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,12 @@ def check_cover_is_stored(self):
42
42
43
43
def hide_file_windows (self ):
44
44
hidden_mask = 2
45
- success = ctypes .windll .kernel32 .SetFileAttributesW (
46
- self .cover_path , hidden_mask
45
+ self .assertTrue (
46
+ ctypes .windll .kernel32 .SetFileAttributesW (
47
+ self .cover_path , hidden_mask
48
+ ),
49
+ "Could not set file attributes" ,
47
50
)
48
- if not success :
49
- self .skipTest ("unable to set file attributes" )
50
51
51
52
def test_set_art_from_folder (self ):
52
53
self .touch (b"c\xc3 \xb6 ver.jpg" , dir = self .album .path , content = "IMAGE" )
Original file line number Diff line number Diff line change @@ -57,13 +57,10 @@ def test_windows_hidden(self):
57
57
58
58
with tempfile .NamedTemporaryFile () as f :
59
59
# Hide the file using
60
- success = ctypes .windll .kernel32 .SetFileAttributesW (
61
- f .name , hidden_mask
60
+ self .assertTrue (
61
+ ctypes .windll .kernel32 .SetFileAttributesW (f .name , hidden_mask ),
62
+ "Could not set file attributes" ,
62
63
)
63
-
64
- if not success :
65
- self .skipTest ("unable to set file attributes" )
66
-
67
64
self .assertTrue (hidden .is_hidden (f .name ))
68
65
69
66
def test_other_hidden (self ):
You can’t perform that action at this time.
0 commit comments