call site 13 for magic.patch
magic/testing/test_invoke.py - line 17
16
17
18
19
20
21
22
23
24
25
26
27
   def test_invoke_compile():
->     py.magic.invoke(compile=True)
       try:
           co = compile("""if 1: 
                       def f(): 
                           return 1
                       \n""", '', 'exec')
           d = {}
           exec co in d
           assert py.code.Source(d['f']) 
       finally:
           py.magic.revoke(compile=True)
magic/invoke.py - line 16
4
5
6
7
8
9
10
11
12
13
14
15
16
   def invoke(assertion=False, compile=False):
       """ invoke magic, currently you can specify:
   
           assertion  patches the builtin AssertionError to try to give
                      more meaningful AssertionErrors, which by means
                      of deploying a mini-interpreter constructs
                      a useful error message.
       """
       if assertion:
           from py.__.magic import assertion
           assertion.invoke()
       if compile: 
->         py.magic.patch(cpy_builtin, 'compile', py.code.compile )