Skip to content
Permalink
Browse files

document the causes of these errors

  • Loading branch information
alex committed Jul 10, 2013
1 parent d8203a6 commit e8b97871eae333f4c9b4b9389d73bb3ef4799c8b
Showing with 11 additions and 3 deletions.
  1. +8 −0 tasks/travis.py
  2. +2 −2 tests/objects/test_floatobject.py
  3. +1 −1 topaz/modules/kernel.py
@@ -129,6 +129,14 @@ def run_docs_tests(env):


def run_flake8_tests(env):
# E122 continuation line missing indentation or outdented
# E123 closing bracket does not match indentation of opening bracket's line
# E124 closing bracket does not match visual indentation
# E125 continuation line does not distinguish itself from next logical line
# E126 continuation line over-indented for hanging indent
# E128 continuation line under-indented for visual indent
# E501 line too long
# F811 redefinition of unused
invoke.run('flake8 . --ignore="E122,E123,E124,E125,E126,E128,E501,F811"')


@@ -103,11 +103,11 @@ def test_abs(self, space):
w_res = space.execute("return -123.534.abs")
assert space.float_w(w_res) == 123.534

def test_nan(self, space):
def test_zero_division_nan(self, space):
w_res = space.execute("return 0.0 / 0.0")
assert math.isnan(self.unwrap(space, w_res))

def test_infinity(self, space):
def test_zero_division_inf(self, space):
w_res = space.execute("return 1.0 / 0.0")
assert self.unwrap(space, w_res) == float('inf')
w_res = space.execute("return -1.0 / 0.0")
@@ -207,7 +207,7 @@ def method_binding(self, space):

@moduledef.function("__method__")
@moduledef.function("__callee__")
def method_method(self, space):
def method_callee(self, space):
frame = space.getexecutioncontext().gettoprubyframe()
return space.newsymbol(frame.bytecode.name)

0 comments on commit e8b9787

Please sign in to comment.
You can’t perform that action at this time.