diff --git a/tests/test_rulecat.py b/tests/test_rulecat.py
index bfd73fb..0c178c7 100644
--- a/tests/test_rulecat.py
+++ b/tests/test_rulecat.py
@@ -37,10 +37,13 @@ from idstools.scripts import rulecat
import idstools.rulecat.extract
def has_python2():
- r = subprocess.call(
- ["python2", "--version"],
- stderr=open("/dev/null", "wb"),
- stdout=open("/dev/null", "wb"))
+ try:
+ r = subprocess.call(
+ ["python2", "--version"],
+ stderr=open("/dev/null", "wb"),
+ stdout=open("/dev/null", "wb"))
+ except OSError:
+ return False
if r == 0:
return True
return False
@@ -126,7 +129,7 @@ class TestRulecat(unittest.TestCase):
shutil.rmtree("tmp")
os.makedirs("./tmp")
subprocess.check_call(
- ["/usr/bin/env", "python2",
+ ["/usr/bin/env", "python3",
"../bin/idstools-rulecat",
"--url",
"file://%s/emerging.rules.tar.gz" % (