diff --git a/setup.py b/setup.py index e8e370e..1808022 100755 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ long_description = """Hy is a Python <--> Lisp layer. It helps make things work nicer, and lets Python and the Hy lisp variant play nice together. """ -install_requires = ['rply>=0.7.0'] +install_requires = ['rply>=0.7.0', 'astor>=0.3'] if sys.version_info[:2] < (2, 7): install_requires.append('argparse>=1.2.1') install_requires.append('importlib>=1.0.2') diff --git a/tests/test_bin.py b/tests/test_bin.py index 4216662..06cd455 100644 --- a/tests/test_bin.py +++ b/tests/test_bin.py @@ -22,7 +22,6 @@ # DEALINGS IN THE SOFTWARE. import os import subprocess -import sys from nose.plugins.skip import SkipTest @@ -42,8 +41,8 @@ def run_cmd(cmd, stdin_data=None): # Read stdout and stderr otherwise if the PIPE buffer is full, we might # wait for ever… while p.poll() is None: - stdout += str(p.stdout.read()) - stderr += str(p.stderr.read()) + stdout += p.stdout.read().decode('utf-8') + stderr += p.stderr.read().decode('utf-8') return p.returncode, stdout, stderr @@ -118,10 +117,6 @@ def test_bin_hyc_missing_file(): def test_hy2py(): - # XXX Astor doesn't seem to support Python3 :( - if sys.version_info[0] == 3: - return - # and running this script this way doesn't work on Windows if os.name == "nt": raise SkipTest("doesn't work on Windows")