Philip Jenvey avatar Philip Jenvey committed b038715


Comments (0)

Files changed (1)


     assert caller.func_name in repr(exc.args)
-def test_signature_bookkeeping():
+def test_bookkeeping():
     @signature('x', 'y', returns='z')
     def f(a, b):
         return a + len(b)
     assert == 'foo'
     assert f(1, 'hello') == 6
-def test_signature_basic():
+def test_basic():
     @signature(, types.str(), returns=types.char())
     def f(a, b):
         return b[a]
     assert getsig(f) == [model.SomeInteger(), model.SomeString(), model.SomeChar()]
-def test_signature_arg_errors():
+def test_arg_errors():
     @signature(, types.str(),
     def f(a, b):
         return a + len(b)
     def bad_for_body(): # would give error inside 'f' body, instead errors at call
         f('a', 'b')
-def test_signature_return():
+def test_return():
     def f():
         return 'a'
     a = annotate_at(g)
     assert sigof(a, f) == [model.SomeString(), model.SomeString()]
-def test_signature_return_errors():
+def test_return_errors():
     def int_not_char():
         return s
-def test_signature_none():
+def test_none():
     def f():
     assert getsig(f) == [model.s_None]
-def test_signature_float():
+def test_float():
     @signature(types.longfloat(), types.singlefloat(), returns=types.float())
     def f(a, b):
         return 3.0
     assert getsig(f) == [model.SomeLongFloat(), model.SomeSingleFloat(), model.SomeFloat()]
-def test_signature_unicode():
+def test_unicode():
     def f(u):
         return len(u)
     assert getsig(f) == [model.SomeUnicodeString(), model.SomeInteger()]
-def test_signature_list():
+def test_list():
     def f(a):
         return len(a)
-def test_signature_array():
+def test_array():
     def f():
         return [1]
-def test_signature_dict():
+def test_dict():
     def f():
         return {'a': 1, 'b': 2}
     assert rettype.dictdef.dictvalue.s_value == model.SomeInteger()
-def test_signature_instance():
+def test_instance():
     class C1(object):
     class C2(C1):
     def bad_for_body():
-def test_signature_self():
+def test_self():
     class C(object):
         @signature(types.self(), types.self(), returns=types.none())
     assert isinstance(argtype, model.SomeInstance)
     assert argtype.classdef.classdesc.pyobj == C
-def test_signature_self_error():
+def test_self_error():
     class C(object):
         @signature(types.self(), returns=types.none())
         def incomplete_sig_meth(self):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.