diff options
author | zax <zach.smith@makespace.com> | 2015-11-01 17:43:32 -0500 |
---|---|---|
committer | zax <zach.smith@makespace.com> | 2015-11-01 17:52:17 -0500 |
commit | ca9492c95c06bc30f592db5791ed84936c9630c3 (patch) | |
tree | 2f1669353369d1decf9d4ee583f2ccc84603b9e8 | |
parent | 0561247cf17ec2b8602d915a3ad051909db82404 (diff) | |
download | pycco-hypothesis.tar.gz |
Call main script from CIhypothesis
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | pycco/main.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index e4997ac..62e7c6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,5 +7,6 @@ install: - 'pip install -r requirements.test.txt' script: - 'py.test --cov=pycco tests/' + - 'python -m pycco.main pycco/main.py' after_success: - coveralls diff --git a/pycco/main.py b/pycco/main.py index 8a20ae6..cde05d7 100644 --- a/pycco/main.py +++ b/pycco/main.py @@ -409,7 +409,7 @@ def shift(list, default): def remove_control_chars(s): # Sanitization regexp copied from # http://stackoverflow.com/questions/92438/stripping-non-printable-characters-from-a-string-in-python - from .compat import pycco_unichr + from pycco.compat import pycco_unichr control_chars = ''.join(map(pycco_unichr, list(range(0, 32)) + list(range(127, 160)))) control_char_re = re.compile(u'[{}]'.format(re.escape(control_chars))) return control_char_re.sub('', s) |