1
0
mirror of https://github.com/arsenetar/send2trash.git synced 2026-03-14 19:41:39 +00:00

Made a few minor style fixes, and added a proper error in cases where the target path of send2trash() doesn't exist.

This commit is contained in:
Virgil Dupras
2011-03-12 11:48:19 +01:00
parent eedbe258cb
commit 358b705cbc
2 changed files with 11 additions and 10 deletions

View File

@@ -3,6 +3,10 @@ import os
from os import path as op
from send2trash.plat_other import send2trash
from configparser import ConfigParser
# XXX Although this unittest is better than no unit test at all, it would be better to mock
# os.path.mountpoint() rather than going through ramfs (and requiring admin rights).
#
# Warning: This test will shit up your Trash folder with test.txt files.
#