This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eli.bendersky
Recipients Alexander.Belopolsky, belopolsky, eli.bendersky, terry.reedy
Date 2010-07-21.13:45:44
SpamBayes Score 0.0011759663
Marked as misclassified No
Message-id <AANLkTikBDTBs9oFv0RRsEN_duURS67Ew85yx-0A82-8S@mail.gmail.com>
In-reply-to <ADEC5D92-4219-4694-B711-DA6C110AAEA0@gmail.com>
Content
>
> 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?
History
Date User Action Args
2010-07-21 13:45:46eli.benderskysetrecipients: + eli.bendersky, terry.reedy, belopolsky, Alexander.Belopolsky
2010-07-21 13:45:44eli.benderskylinkissue9317 messages
2010-07-21 13:45:44eli.benderskycreate