Do not use subprocess.

pull/2/head
Raphaël Vinot 2015-10-27 10:23:04 +01:00
parent 427442e81f
commit 74fe05cbe1
2 changed files with 4 additions and 10 deletions

0
bin/__init__.py Normal file
View File

View File

@ -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()