Skip to content

Commit

Permalink
Merge pull request #518 from scarabeusiv/patch-1
Browse files Browse the repository at this point in the history
Skip tests where we didn't find the binaries
  • Loading branch information
miracle2k committed Nov 18, 2019
2 parents 2eae445 + 8b12f81 commit 3b2fc3a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,14 @@ class TestAutoprefixer6Filter(TempEnvironmentHelper):
}

def test_first(self):
self.mkbundle('test.css', filters='autoprefixer6', output='output.css').build()
try:
self.mkbundle('test.css', filters='autoprefixer6', output='output.css').build()
except FilterError as e:
# postcss is not installed, that's ok.
if 'Program file not found' in e.message:
raise SkipTest()
else:
raise
out = self.get('output.css')
assert 'webkit' in out

Expand All @@ -1620,7 +1627,14 @@ def test_es2015(self):

def test_extra_args(self):
self.env.config['BABEL_EXTRA_ARGS'] = ['--minified']
self.mkbundle('test.es6', filters='babel', output='output.js').build()
try:
self.mkbundle('test.es6', filters='babel', output='output.js').build()
except FilterError as e:
# babel is not installed, that's ok.
if 'Program file not found' in e.message:
raise SkipTest()
else:
raise
assert (self.get('output.js').strip() ==
'var x=p=>{return false};')

Expand Down

0 comments on commit 3b2fc3a

Please sign in to comment.