diff --git a/hy/compiler.py b/hy/compiler.py index 8882be3..81af3fd 100644 --- a/hy/compiler.py +++ b/hy/compiler.py @@ -203,7 +203,7 @@ class HyASTCompiler(object): @builds(HyInteger) def compile_number(self, number): - return ast.Num(n=number, + return ast.Num(n=int(number), # See HyInteger above. lineno=number.start_line, col_offset=number.start_column) diff --git a/tox.ini b/tox.ini index ba3898e..1425e4c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27,pypy,py32 +envlist = py27,pypy,py32,py26,py33 [testenv] commands = nosetests deps =