Browse files

Add some documentation to test

  • Loading branch information...
1 parent a94aa2d commit 0c11c224f38db173dddfc4e4e9cf03f23b7c126f @markflorisson markflorisson committed Apr 5, 2013
Showing with 12 additions and 0 deletions.
  1. +12 −0 numba/exttypes/tests/test_vtables.py
View
12 numba/exttypes/tests/test_vtables.py
@@ -1,4 +1,9 @@
# -*- coding: utf-8 -*-
+
+"""
+Test hash-based virtual method tables.
+"""
+
from __future__ import print_function, division, absolute_import
import numba as nb
@@ -10,6 +15,10 @@
from numba.exttypes.signatures import Method
from numba.testing.test_support import parametrize, main
+#------------------------------------------------------------------------
+# Signature enumeration
+#------------------------------------------------------------------------
+
class py_class(object):
pass
@@ -42,6 +51,9 @@ def method(func, name, sig):
for argtype1 in all_types
for argtype2 in all_types]
+#------------------------------------------------------------------------
+# Table building
+#------------------------------------------------------------------------
def make_table(methods):
table = methodtable.VTabType(py_class, [])

0 comments on commit 0c11c22

Please sign in to comment.