From: Michael Fladischer <FladischerMichael@fladi.at>
Date: Wed, 25 Nov 2020 20:01:03 +0100
Subject: Use sys.executable to run crontest.

---
 tests/data/crontest     | 1 -
 tests/test_scheduler.py | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/data/crontest b/tests/data/crontest
index f3b12df..66c52f5 100755
--- a/tests/data/crontest
+++ b/tests/data/crontest
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 
 import os
 import sys
diff --git a/tests/test_scheduler.py b/tests/test_scheduler.py
index 597a18f..c059848 100644
--- a/tests/test_scheduler.py
+++ b/tests/test_scheduler.py
@@ -42,7 +42,7 @@ except ImportError:
     from test import support as test_support
 
 TEST_DIR = os.path.dirname(__file__)
-COMMAND = os.path.join(TEST_DIR, 'data', 'crontest ')
+COMMAND = sys.executable + ' ' + os.path.join(TEST_DIR, 'data', 'crontest ')
 
 class SchedulerTestCase(unittest.TestCase):
     """Test scheduling functions of CronTab."""
