Skip to content

Commit

Permalink
Merge pull request #520 from VorpalBlade/unit_test_fixes
Browse files Browse the repository at this point in the history
Fix some unit tests check on Python 3
  • Loading branch information
miracle2k committed Nov 18, 2019
2 parents 7d2c789 + 5e98fac commit 2eae445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ def test_cleancss(self):
if not find_executable('cleancss'):
raise SkipTest()
self.mkbundle('foo.css', filters='cleancss', output='out.css').build()
assert self.get('out.css') == 'h1{font-family:Verdana;color:#FFF}'
assert self.get('out.css') in ('h1{font-family:Verdana;color:#FFF}', 'h1{font-family:Verdana;color:#fff}')

def test_cssslimmer(self):
try:
Expand Down Expand Up @@ -1612,7 +1612,7 @@ def test_es2015(self):
self.mkbundle('test.es6', filters=es2015, output='output.js').build()
except FilterError as e:
# babel is not installed, that's ok.
if 'Program file not found' in e.message:
if 'Program file not found' in str(e):
raise SkipTest()
else:
raise
Expand Down

0 comments on commit 2eae445

Please sign in to comment.