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 marco.buttu
Recipients docs@python, marco.buttu, skrah
Date 2017-04-12.14:59:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492009171.7.0.643211980228.issue30055@psf.upfronthosting.co.za>
In-reply-to
Content
The testsetup in Doc/library/decimal.rst is not enough for isolating the tests in respect to the other rst files.  Currently we have the following testsetup, without a testcleanup:

 .. testsetup:: *
 
    import decimal
    import math
    from decimal import *
    # make sure each group gets a fresh context
    setcontext(Context())

Without a testcleanup, the changes on the context will affect the other files that use the context (like Doc/library/statistics.rst).  We should better isolate the tests adding also a testcleanup:

.. testcleanup:: *

   # make sure other tests (outside this file) get a fresh context
   setcontext(Context())

I am opening a PR.
History
Date User Action Args
2017-04-12 14:59:31marco.buttusetrecipients: + marco.buttu, skrah, docs@python
2017-04-12 14:59:31marco.buttusetmessageid: <1492009171.7.0.643211980228.issue30055@psf.upfronthosting.co.za>
2017-04-12 14:59:31marco.buttulinkissue30055 messages
2017-04-12 14:59:31marco.buttucreate