Merge pull request #55 from juliangilbey/fix-win-test

Only import Windows-specific modules when on Windows
This commit is contained in:
Andrew Senetar 2021-01-28 23:53:24 -06:00 committed by GitHub
커밋 5d3835735e
No known key found for this signature in database
GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@ -9,8 +9,9 @@ from tempfile import gettempdir
from send2trash import send2trash as s2t
# import the two versions as well as the "automatic" version
from send2trash.plat_win_modern import send2trash as s2t_modern
from send2trash.plat_win_legacy import send2trash as s2t_legacy
if sys.platform == "win32":
from send2trash.plat_win_modern import send2trash as s2t_modern
from send2trash.plat_win_legacy import send2trash as s2t_legacy
@unittest.skipIf(sys.platform != "win32", "Windows only")