File: 0001-Skip-non-posix-shell-compatibility-test-on-platforms.patch

package info (click to toggle)
python-crontab 3.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 536 kB
  • sloc: python: 2,935; sh: 6; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 816 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Michael Fladischer <FladischerMichael@fladi.at>
Date: Sat, 24 Oct 2020 14:13:44 +0200
Subject: Skip non-posix shell compatibility test on platforms other than
 WinNT.

---
 tests/test_compatibility.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/test_compatibility.py b/tests/test_compatibility.py
index e1a6196..61c1928 100644
--- a/tests/test_compatibility.py
+++ b/tests/test_compatibility.py
@@ -102,6 +102,7 @@ class CompatTestCase(unittest.TestCase):
         self.assertEqual(cron[0].command, 'cmd arg_with_\\#_character')
         self.assertEqual(cron[0].comment, 'comment')
 
+    @unittest.skipIf(os.name != "nt", "Skip because not on Windows")
     def test_07_non_posix_shell(self):
         """Shell in windows environments is split correctly"""
         from crontab import Process