Message111055
>
> Sorry, typing on the phone. s/of/if/ in my message above. What I mean
> is that as far as I know, when you run a script from command line,
> python loads it using functions in runpy. Arguably this means that
> these functions should show up in coverage.
>
As far as I understand, when you run:
py3d -m trace -C pickle-trace.d -c -m test_pickle.py
The first -m flag applies to the trace module. Python uses
runpy.run_module to load it, and then passes it its arguments (-C and
onwards).
Since runpy.run_module actually runs /before/ trace.py, trace.py has
no chance of setting its settrace hooks and trace runpy itself.
Moreover, since runpy is only the machinery to execute trace.py, does
it even make sense to include it in coverage?
What do you think? |
|
Date |
User |
Action |
Args |
2010-07-21 13:45:46 | eli.bendersky | set | recipients:
+ eli.bendersky, terry.reedy, belopolsky, Alexander.Belopolsky |
2010-07-21 13:45:44 | eli.bendersky | link | issue9317 messages |
2010-07-21 13:45:44 | eli.bendersky | create | |
|