components/python/decorator/test/results-3.4-32.master
author Rich Burridge <rich.burridge@oracle.com>
Tue, 20 Sep 2016 08:43:49 -0700
changeset 6934 e72eb275185d
parent 5028 db8ff415ba49
permissions -rw-r--r--
23093759 Upgrade decorator to 4.0.10
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
     1
test (__main__.DocumentationTestCase) ... ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
     2
test_singledispatch1 (__main__.DocumentationTestCase) ... ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
     3
test_singledispatch2 (__main__.DocumentationTestCase) ... ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
     4
test_no_first_arg (__main__.ExtraTestCase) ... ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
     5
test_qualname (__main__.ExtraTestCase) ... ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
     6
test_signature (__main__.ExtraTestCase) ... ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
     7
test_unique_filenames (__main__.ExtraTestCase) ... ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
     8
test_c_classes (__main__.TestSingleDispatch) ... ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
     9
test_mro (__main__.TestSingleDispatch) ... ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    10
test_mro_conflicts (__main__.TestSingleDispatch) ... ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    11
test_register_abc (__main__.TestSingleDispatch) ... ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    12
test_register_decorator (__main__.TestSingleDispatch) ... ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    13
test_register_error (__main__.TestSingleDispatch) ... ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    14
test_simple_overloads (__main__.TestSingleDispatch) ... ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    15
test_wrapping_attributes (__main__.TestSingleDispatch) ... ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    16
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    17
----------------------------------------------------------------------
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    18
Ran 15 tests in
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    19
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    20
OK
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    21
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    22
    from decorator import getargspec  # akin to inspect.getargspec
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    23
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    24
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    25
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    26
    print(getargspec(f1))
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    27
Expecting:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    28
    ArgSpec(args=[], varargs='args', varkw='kw', defaults=None)
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    29
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    30
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    31
    f1(0, 1) # doctest: +IGNORE_EXCEPTION_DETAIL
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    32
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    33
    Traceback (most recent call last):
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    34
       ...
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    35
    TypeError: f1() takes exactly 1 positional argument (2 given)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    36
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    37
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    38
    from decorator import decorate
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    39
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    40
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    41
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    42
    @memoize
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    43
    def heavy_computation():
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    44
        time.sleep(2)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    45
        return "done"
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    46
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    47
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    48
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    49
    print(heavy_computation()) # the first time it will take 2 seconds
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    50
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    51
    done
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    52
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    53
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    54
    print(heavy_computation()) # the second time it will be instantaneous
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    55
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    56
    done
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    57
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    58
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    59
    print(getargspec(heavy_computation))
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    60
Expecting:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    61
    ArgSpec(args=[], varargs=None, varkw=None, defaults=None)
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    62
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    63
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    64
    @trace
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    65
    def f1(x):
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    66
        pass
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    67
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    68
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    69
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    70
    f1(0)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    71
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    72
    calling f1 with args (0,), {}
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    73
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    74
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    75
    print(getargspec(f1))
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    76
Expecting:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    77
    ArgSpec(args=['x'], varargs=None, varkw=None, defaults=None)
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    78
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    79
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    80
    @trace
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    81
    def f(x, y=1, z=2, *args, **kw):
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    82
        pass
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    83
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    84
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    85
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    86
    f(0, 3)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    87
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    88
    calling f with args (0, 3, 2), {}
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    89
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    90
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    91
    print(getargspec(f))
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    92
Expecting:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
    93
    ArgSpec(args=['x', 'y', 'z'], varargs='args', varkw='kw', defaults=(1, 2))
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    94
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    95
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    96
    @trace
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    97
    def f(x: 'the first argument', y: 'default argument'=1, z=2,
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    98
          *args: 'varargs', **kw: 'kwargs'):
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    99
        pass
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   100
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   101
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   102
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   103
    from inspect import getfullargspec
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   104
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   105
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   106
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   107
    argspec = getfullargspec(f)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   108
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   109
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   110
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   111
    argspec.args
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   112
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   113
    ['x', 'y', 'z']
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   114
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   115
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   116
    argspec.varargs
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   117
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   118
    'args'
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   119
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   120
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   121
    argspec.varkw
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   122
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   123
    'kw'
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   124
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   125
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   126
    argspec.defaults
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   127
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   128
    (1, 2)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   129
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   130
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   131
    argspec.kwonlyargs
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   132
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   133
    []
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   134
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   135
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   136
    argspec.kwonlydefaults
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   137
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   138
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   139
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   140
    f.__annotations__ is f.__wrapped__.__annotations__
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   141
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   142
    True
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   143
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   144
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   145
    from decorator import decorator
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   146
Expecting nothing
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   147
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   148
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   149
    print(decorator.__doc__)
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   150
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   151
    decorator(caller) converts a caller function into a decorator
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   152
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   153
Trying:
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   154
    @decorator
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   155
    def trace(f, *args, **kw):
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   156
        kwstr = ', '.join('%r: %r' % (k, kw[k]) for k in sorted(kw))
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   157
        print("calling %s with args %s, {%s}" % (f.__name__, args, kwstr))
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   158
        return f(*args, **kw)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   159
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   160
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   161
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   162
    trace # doctest: +ELLIPSIS
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   163
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   164
    <function trace at 0x...>
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   165
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   166
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   167
    @trace
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   168
    def func(): pass
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   169
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   170
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   171
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   172
    func()
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   173
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   174
    calling func with args (), {}
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   175
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   176
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   177
    @blocking("Please wait ...")
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   178
    def read_data():
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   179
        time.sleep(3) # simulate a blocking resource
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   180
        return "some data"
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   181
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   182
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   183
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   184
    print(read_data())  # data is not available yet
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   185
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   186
    Please wait ...
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   187
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   188
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   189
    time.sleep(1)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   190
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   191
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   192
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   193
    print(read_data())  # data is not available yet
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   194
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   195
    Please wait ...
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   196
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   197
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   198
    time.sleep(1)
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   199
Expecting nothing
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   200
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   201
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   202
    print(read_data())  # data is not available yet
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   203
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   204
    Please wait ...
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   205
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   206
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   207
    time.sleep(1.1)  # after 3.1 seconds, data is available
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   208
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   209
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   210
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   211
    print(read_data())
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   212
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   213
    some data
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   214
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   215
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   216
    @decorator(Future)
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   217
    def long_running(x):
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   218
        time.sleep(.5)
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   219
        return x
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   220
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   221
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   222
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   223
    fut1 = long_running(1)
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   224
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   225
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   226
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   227
    fut2 = long_running(2)
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   228
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   229
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   230
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   231
    fut1.result() + fut2.result()
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   232
Expecting:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   233
    3
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   234
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   235
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   236
    from contextlib import contextmanager
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   237
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   238
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   239
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   240
    @contextmanager
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   241
    def before_after(before, after):
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   242
        print(before)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   243
        yield
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   244
        print(after)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   245
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   246
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   247
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   248
    with before_after('BEFORE', 'AFTER'):
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   249
        print('hello')
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   250
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   251
    BEFORE
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   252
    hello
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   253
    AFTER
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   254
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   255
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   256
    def f(*args, **kw): # a function with a generic signature
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   257
        print(args, kw)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   258
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   259
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   260
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   261
    f1 = FunctionMaker.create('f1(a, b)', 'f(a, b)', dict(f=f))
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   262
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   263
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   264
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   265
    f1(1,2)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   266
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   267
    (1, 2) {}
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   268
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   269
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   270
    f1 = FunctionMaker.create(
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   271
        'f1(a, b)', 'f(a, b)', dict(f=f), addsource=True)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   272
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   273
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   274
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   275
    print(f1.__source__)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   276
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   277
    def f1(a, b):
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   278
        f(a, b)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   279
    <BLANKLINE>
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   280
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   281
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   282
    f1 = FunctionMaker.create(
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   283
        'f1(a, b)', 'f(a, b)', dict(f=f), addsource=True, defaults=(None,))
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   284
Expecting nothing
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   285
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   286
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   287
    print(getargspec(f1))
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   288
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   289
    ArgSpec(args=['a', 'b'], varargs=None, varkw=None, defaults=(None,))
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   290
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   291
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   292
    import inspect
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   293
Expecting nothing
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   294
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   295
Trying:
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   296
    print(inspect.getsource(example))
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   297
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   298
        def wrapper(*args, **kw):
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   299
            return func(*args, **kw)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   300
    <BLANKLINE>
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   301
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   302
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   303
    print(inspect.getsource(factorial.__wrapped__))
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   304
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   305
    @tail_recursive
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   306
    def factorial(n, acc=1):
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   307
        "The good old factorial"
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   308
        if n == 0:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   309
            return acc
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   310
        return factorial(n-1, n*acc)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   311
    <BLANKLINE>
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   312
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   313
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   314
    print(factorial(4))
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   315
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   316
    24
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   317
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   318
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   319
    writer = XMLWriter()
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   320
Expecting nothing
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   321
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   322
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   323
    writer.write(2.3)
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   324
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   325
    '<float>2.3</float>'
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   326
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   327
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   328
    win(Paper(), Rock())
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   329
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   330
    1
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   331
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   332
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   333
    win(Scissors(), Paper())
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   334
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   335
    1
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   336
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   337
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   338
    win(Rock(), Scissors())
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   339
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   340
    1
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   341
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   342
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   343
    win(Paper(), Paper())
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   344
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   345
    0
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   346
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   347
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   348
    win(Rock(), Rock())
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   349
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   350
    0
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   351
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   352
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   353
    win(Scissors(), Scissors())
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   354
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   355
    0
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   356
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   357
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   358
    win(Rock(), Paper())
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   359
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   360
    -1
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   361
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   362
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   363
    win(Paper(), Scissors())
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   364
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   365
    -1
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   366
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   367
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   368
    win(Scissors(), Rock())
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   369
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   370
    -1
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   371
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   372
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   373
    win(StrongRock(), Scissors())
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   374
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   375
    1
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   376
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   377
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   378
    win.dispatch_info(StrongRock, Scissors)
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   379
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   380
    [('StrongRock', 'Scissors'), ('Rock', 'Scissors')]
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   381
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   382
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   383
    issubclass(WithLength, collections.Sized)
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   384
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   385
    True
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   386
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   387
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   388
    get_length(WithLength())
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   389
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   390
    0
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   391
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   392
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   393
    _ = collections.Set.register(SomeSet)
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   394
Expecting nothing
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   395
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   396
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   397
    issubclass(SomeSet, collections.Set)
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   398
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   399
    True
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   400
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   401
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   402
    get_length(SomeSet())  # NB: the implementation for Sized would give 0
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   403
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   404
    1
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   405
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   406
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   407
    g, V = singledispatch_example2()
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   408
Expecting nothing
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   409
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   410
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   411
    g.dispatch_info(V)
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   412
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   413
    [('V',), ('Sized',), ('S',), ('Container',)]
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   414
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   415
Trying:
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   416
    @trace
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   417
    def f():
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   418
        1/0
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   419
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   420
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   421
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   422
    f() # doctest: +ELLIPSIS
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   423
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   424
    Traceback (most recent call last):
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   425
      ...
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   426
         File "<string>", line 2, in f
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   427
         File "<doctest __main__[22]>", line 4, in trace
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   428
           return f(*args, **kw)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   429
         File "<doctest __main__[51]>", line 3, in f
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   430
           1/0
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   431
    ZeroDivisionError: ...
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   432
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   433
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   434
    @memoize
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   435
    def getkeys(**kw):
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   436
        return kw.keys()
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   437
Expecting nothing
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   438
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   439
Trying:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   440
    getkeys(func='a') # doctest: +ELLIPSIS
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   441
Expecting:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   442
    Traceback (most recent call last):
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   443
     ...
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   444
    TypeError: _memoize() got multiple values for ... 'func'
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   445
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   446
Trying:
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   447
    @trace
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   448
    def f(_func_): print(f)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   449
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   450
    Traceback (most recent call last):
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   451
      ...
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   452
    NameError: _func_ is overridden in
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   453
    def f(_func_):
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   454
        return _call_(_func_, _func_)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   455
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   456
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   457
    def f(): pass # the original function
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   458
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   459
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   460
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   461
    f.attr1 = "something" # setting an attribute
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   462
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   463
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   464
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   465
    f.attr2 = "something else" # setting another attribute
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   466
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   467
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   468
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   469
    traced_f = trace(f) # the decorated function
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   470
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   471
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   472
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   473
    traced_f.attr1
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   474
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   475
    'something'
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   476
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   477
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   478
    traced_f.attr2 = "something different" # setting attr
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   479
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   480
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   481
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   482
    f.attr2 # the original attribute did not change
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   483
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   484
    'something else'
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   485
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   486
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   487
    a = Action()
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   488
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   489
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   490
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   491
    a.view() # ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   492
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   493
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   494
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   495
    a.insert() # doctest: +IGNORE_EXCEPTION_DETAIL
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   496
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   497
    Traceback (most recent call last):
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   498
       ...
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   499
    PermissionError: User does not have the permission to run insert!
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   500
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   501
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   502
    decorator(_memoize).__name__
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   503
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   504
    '_memoize'
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   505
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   506
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   507
    factorial.__doc__
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   508
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   509
    'The good old factorial'
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   510
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   511
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   512
    ba.__class__.__name__
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   513
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   514
    'ContextManager'
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   515
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   516
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   517
    hello('michele')
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   518
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   519
    BEFORE
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   520
    hello michele
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   521
    AFTER
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   522
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   523
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   524
    @trace
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   525
    def f(**kw): pass
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   526
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   527
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   528
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   529
    f()
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   530
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   531
    calling f with args (), {}
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   532
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   533
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   534
    @trace
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   535
    def f(*, a=1, **kw): pass
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   536
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   537
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   538
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   539
    import inspect
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   540
Expecting nothing
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   541
ok
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   542
Trying:
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   543
    inspect.getfullargspec(f)
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   544
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   545
    FullArgSpec(args=[], varargs=None, varkw='kw', defaults=None, kwonlyargs=['a'], kwonlydefaults={'a': 1}, annotations={})
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   546
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   547
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   548
    @trace
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   549
    def func(a, b, *args, y=2, z=3, **kwargs):
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   550
        return y, z
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   551
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   552
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   553
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   554
    func('a', 'b', 'c', 'd', 'e', y='y', z='z', cat='dog')
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   555
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   556
    calling func with args ('a', 'b', 'c', 'd', 'e'), {'cat': 'dog', 'y': 'y', 'z': 'z'}
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   557
    ('y', 'z')
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   558
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   559
Trying:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   560
    @trace
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   561
    def f(arg, defarg=1, *args, kwonly=2): pass
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   562
Expecting nothing
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   563
ok
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   564
Trying:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   565
    f.__kwdefaults__
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   566
Expecting:
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   567
    {'kwonly': 2}
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   568
ok
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   569
52 items had no tests:
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   570
    documentation.Action.delete
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   571
    documentation.Action.insert
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   572
    documentation.Action.view
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   573
    documentation.Admin
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   574
    documentation.C
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   575
    documentation.Future
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   576
    documentation.Future.__init__
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   577
    documentation.Future.result
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   578
    documentation.Paper
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   579
    documentation.PermissionError
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   580
    documentation.PowerUser
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   581
    documentation.Rock
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   582
    documentation.Scissors
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   583
    documentation.SomeSet
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   584
    documentation.SomeSet.__len__
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   585
    documentation.StrongRock
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   586
    documentation.TailRecursive
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   587
    documentation.TailRecursive.__call__
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   588
    documentation.TailRecursive.__init__
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   589
    documentation.User
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   590
    documentation.WithLength
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   591
    documentation.WithLength.__len__
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   592
    documentation.XMLWriter
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   593
    documentation.XMLWriter.__init__
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   594
    documentation.XMLWriter.write
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   595
    documentation._memoize
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   596
    documentation._trace
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   597
    documentation.before_after
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   598
    documentation.blocking
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   599
    documentation.decorator_apply
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   600
    documentation.example
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   601
    documentation.f1
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   602
    documentation.fact
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   603
    documentation.factorial
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   604
    documentation.get_length
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   605
    documentation.get_length_set
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   606
    documentation.get_length_sized
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   607
    documentation.get_userclass
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   608
    documentation.identity_dec
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   609
    documentation.memoize
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   610
    documentation.memoize_uw
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   611
    documentation.restricted
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   612
    documentation.singledispatch_example1
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   613
    documentation.singledispatch_example2
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   614
    documentation.tail_recursive
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   615
    documentation.trace
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   616
    documentation.win
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   617
    documentation.winPaperScissors
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   618
    documentation.winRockPaper
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   619
    documentation.winRockScissors
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   620
    documentation.winStrongRockPaper
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   621
    documentation.writefloat
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   622
8 items passed all tests:
6934
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   623
  88 tests in documentation
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   624
   3 tests in documentation.Action
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   625
   2 tests in documentation.a_test_for_pylons
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   626
   2 tests in documentation.hello
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   627
   2 tests in documentation.test_kwonly_no_args
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   628
   3 tests in documentation.test_kwonly_star_notation
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   629
   2 tests in documentation.test_kwonlyargs
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   630
   2 tests in documentation.test_kwonlydefaults
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   631
104 tests in 60 items.
e72eb275185d 23093759 Upgrade decorator to 4.0.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5028
diff changeset
   632
104 passed and 0 failed.
3840
39959a8e7a76 20460239 decorator should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   633
Test passed.