Skip process test on < 2.7

There is an unfixed bug in 2.6 that makes this unstable.
This commit is contained in:
Mike Place 2016-10-31 23:20:48 +13:00
parent 534a21e8d6
commit 3d36f47d53
No known key found for this signature in database
GPG Key ID: 9136F4F13705CFD3

View File

@ -3,12 +3,13 @@
# Import python libs
from __future__ import absolute_import
import os
import sys
import time
import signal
import multiprocessing
# Import Salt Testing libs
from salttesting import TestCase
from salttesting import TestCase, skipIf
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')
@ -99,6 +100,7 @@ class TestProcessManager(TestCase):
process_manager.stop_restarting()
process_manager.kill_children()
@skipIf(sys.version_info < (2, 7), 'Needs > Py 2.7 due to bug in stdlib')
def test_counter(self):
def incr(counter, num):
salt.utils.appendproctitle('test_counter')