On Thu, Jan 16, 2014 at 4:40 PM, Roy Smith <r...@panix.com> wrote: >> But you might be able to shortcut it enormously. You say the strings >> are "about 2500 characters long, hex-encoded". What are the chances of >> having another constant, somewhere in the test function, that also >> happens to be roughly that long and hex-encoded? > > The chances are exactly zero. > >> If the answer is "practically zero", then skip the code, skip >> co_names, and just look through co_consts. > > That sounds like it should work, thanks! > >> Of course, this whole theory goes out the >> window if your test functions can reference another test's RECEIPT; > > No, they don't do that.
Awesome! Makes it easy then. ChrisA -- https://mail.python.org/mailman/listinfo/python-list