2 Commits

Author SHA1 Message Date
  Andrew Senetar 5d3835735e
Merge pull request #55 from juliangilbey/fix-win-test 2 months ago
  Julian Gilbey 741c7ad51f Only import Windows-specific modules when on Windows 2 months ago
1 changed files with 3 additions and 2 deletions
Split View
  1. +3
    -2
      tests/test_plat_win.py

+ 3
- 2
tests/test_plat_win.py View File

@@ -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")


Loading…
Cancel
Save