[py-dev] Upgrading from pytest 1.3.2 to 2.0 - computed conftest options

Andy Fundinger andy.fundinger at riskfocusinc.com
Mon Dec 6 22:20:35 CET 2010


I'm trying to upgrade from py.test 1.3.2 to 2.0 but I'm running into 
issues with my use of the old style conftest.py feature to specify 
options.  I specify options like:


option_cov_branch = True 

option_cov_data_file = os.path.join(os.environ["PROJECT_ROOT"],"testCovFile%d.log"%random.randint(0,100000))

option_tx = ["popen//python=python",]*multiprocessing.cpu_count()


the computed ones are a problem as the new .ini files can't take them 
and the conftest.py file specification seems to be ignored.  Is there a 
particular hook that I can grab and add/change config values early 
enough to affect all plugins?




Regards,

Andy Fundinger

Risk Focus Inc.
424.243.6227


New York  Office: +1 917 725 6006  Fax: +1 917 591 1616

London  Office: +44 (0) 207 760 7184  Fax: +44 (0) 207 691 7165
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20101206/c03664b4/attachment.html>


More information about the Pytest-dev mailing list