summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSeth Morton <seth.m.morton@gmail.com>2020-11-16 20:16:57 -0800
committerSeth Morton <seth.m.morton@gmail.com>2020-11-17 22:35:33 -0800
commit0c31c245fc461641024ae9eed98ea97ca2ef79a7 (patch)
treef48f43a98d2512b13156f1bdf64a506976e6cda2 /tests
parent882187fd30048f20f5f5490562b0fd7a989a4ed3 (diff)
downloadnatsort-0c31c245fc461641024ae9eed98ea97ca2ef79a7.tar.gz
Change winsorted to os_sorted
This will work on any operating system. The current implementation is known to not work on non-Windows. Future commits will fix this.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_winsorted.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/test_winsorted.py b/tests/test_winsorted.py
deleted file mode 100644
index 58f3941..0000000
--- a/tests/test_winsorted.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-Testing for the windows sorting
-"""
-import platform
-
-import natsort
-import pytest
-
-
-@pytest.mark.skipif(
- platform.system() != "Windows", reason="Windows-only features"
-)
-class TestWindowsExplorerSort:
-
- @pytest.mark.parametrize("x", [9, 5.4, b"a", (), None])
- def test_winsort_key_fails_for_non_integers(self, x):
- with pytest.raises(TypeError):
- natsort.winsort_key(x)
-
- def test_winsort_key(self):
- assert natsort.winsort_key("hello") < natsort.winsort_key("goodbye")