From 74fe05cbe11cd285bfcf2d55bfc04db5dce48c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 27 Oct 2015 10:23:04 +0100 Subject: [PATCH] Do not use subprocess. --- bin/__init__.py | 0 tests/test.py | 14 ++++---------- 2 files changed, 4 insertions(+), 10 deletions(-) create mode 100644 bin/__init__.py diff --git a/bin/__init__.py b/bin/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test.py b/tests/test.py index ed101de..36e6347 100644 --- a/tests/test.py +++ b/tests/test.py @@ -2,8 +2,8 @@ # -*- coding: utf-8 -*- import unittest -import subprocess -import time + +from bin.specific import KittenGroomerSpec class TestBasic(unittest.TestCase): @@ -12,11 +12,5 @@ class TestBasic(unittest.TestCase): self.maxDiff = None def test_specific(self): - p = subprocess.Popen(['specific.py', '-s', 'tests/src', '-d', 'tests/dst']) - while True: - p.poll() - print(p.returncode) - if p.returncode is None: - time.sleep(1) - else: - return + spec = KittenGroomerSpec('tests/src', 'tests/dst') + spec.processdir()