Skip to content

Commit dc109eb

Browse files
committed
use shutil.rmtree
1 parent cc14520 commit dc109eb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/print.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def pta(tag, color, message):
2121
print(
2222
colored(f"{tag}", color, force_color=True)
2323
+ " " +
24-
message
24+
str(message)
2525
)
2626

2727
def empty():

tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import os
1+
import shutil
22
import src.initialize as init
33
import src.print as print
44

@@ -33,7 +33,7 @@ def startTest():
3333
"pnpm",
3434
False,
3535
)
36-
os.rmdir("project-test")
36+
shutil.rmtree("project-test", ignore_errors=True)
3737

3838
if __name__ == "__main__":
3939
print.warning("THIS IS MEANT FOR TESTING ONLY. DO NOT USE THIS IN PRODUCTION.")

0 commit comments

Comments
 (0)