from numba import autojit, jit

@autojit
def closure_modulo(a, b):
    @jit('int32()')
    def foo():
        return a % b
    return foo()

print closure_modulo(100, 48)

from numba import autojit, jit

@autojit
def closure_modulo(a, b):
    @jit('int32()')
    def foo():
        return a % b
    return foo()

def test_closure_modulo():
    assert closure_modulo(100, 48) == 4

if __name__ == '__main__':
    test_closure_modulo()

Fix tests for python 3
Fix tests for python 3

  from numba import autojit, jit
  
  @autojit
  def closure_modulo(a, b):
      @jit('int32()')
      def foo():
          return a % b
      return foo()
  
+ def test_closure_modulo():
- print closure_modulo(100, 48)
+     assert closure_modulo(100, 48) == 4
  
+ if __name__ == '__main__':
+     test_closure_modulo()
+ 
Fix tests for python 3
## Code Before:
from numba import autojit, jit

@autojit
def closure_modulo(a, b):
    @jit('int32()')
    def foo():
        return a % b
    return foo()

print closure_modulo(100, 48)

## Instruction:
Fix tests for python 3
## Code After:
from numba import autojit, jit

@autojit
def closure_modulo(a, b):
    @jit('int32()')
    def foo():
        return a % b
    return foo()

def test_closure_modulo():
    assert closure_modulo(100, 48) == 4

if __name__ == '__main__':
    test_closure_modulo()
