Skip to content

Commit

Permalink
Fix test after is_3 removal
Browse files Browse the repository at this point in the history
Fix #35
  • Loading branch information
sunpoet committed Sep 20, 2021
1 parent bb5410e commit ec5e3da
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions jsmin/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,15 +592,7 @@ def test_issue_14_with_char_from_return(self):
class RegexTests(unittest.TestCase):

def regex_recognise(self, js):
if not jsmin.is_3:
if jsmin.cStringIO and not isinstance(js, unicode):
# strings can use cStringIO for a 3x performance
# improvement, but unicode (in python2) cannot
klass = jsmin.cStringIO.StringIO
else:
klass = jsmin.StringIO.StringIO
else:
klass = jsmin.io.StringIO
klass = jsmin.io.StringIO
ins = klass(js[2:])
outs = klass()
jsmin.JavascriptMinify(ins, outs).regex_literal(js[0], js[1])
Expand Down

0 comments on commit ec5e3da

Please sign in to comment.