Skip to content

Commit

Permalink
test.py2llvm: drop the test_ prefix from test_base_types() to hide it…
Browse files Browse the repository at this point in the history
… from nose
jordens authored and sbourdeauducq committed Nov 6, 2014
1 parent 901255e commit 337fd06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/py2llvm.py
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
from artiq.py2llvm.module import Module


def test_base_types(choice):
def _base_types(choice):
a = 2 # promoted later to int64
b = a + 1 # initially int32, becomes int64 after a is promoted
c = b//2 # initially int32, becomes int64 after b is promoted
@@ -39,7 +39,7 @@ def _build_function_types(f):

class FunctionBaseTypesCase(unittest.TestCase):
def setUp(self):
self.ns = _build_function_types(test_base_types)
self.ns = _build_function_types(_base_types)

def test_simple_types(self):
self.assertIsInstance(self.ns["foo"], base_types.VBool)

0 comments on commit 337fd06

Please sign in to comment.