|
|
@ -21,7 +21,11 @@ except ImportError:
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
import shutil
|
|
|
|
import shutil
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
assert sys.version_info >= (2, 7)
|
|
|
|
import unittest
|
|
|
|
import unittest
|
|
|
|
|
|
|
|
except:
|
|
|
|
|
|
|
|
import unittest2 as unittest
|
|
|
|
|
|
|
|
|
|
|
|
from yamllint import cli
|
|
|
|
from yamllint import cli
|
|
|
|
from yamllint import config
|
|
|
|
from yamllint import config
|
|
|
@ -334,6 +338,7 @@ class IgnorePathConfigTestCase(unittest.TestCase):
|
|
|
|
|
|
|
|
|
|
|
|
shutil.rmtree(cls.wd)
|
|
|
|
shutil.rmtree(cls.wd)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@unittest.skipIf(sys.version_info < (2, 7), 'Python 2.6 not supported')
|
|
|
|
def test_run_with_ignored_path(self):
|
|
|
|
def test_run_with_ignored_path(self):
|
|
|
|
sys.stdout = StringIO()
|
|
|
|
sys.stdout = StringIO()
|
|
|
|
with self.assertRaises(SystemExit):
|
|
|
|
with self.assertRaises(SystemExit):
|
|
|
|