[issue30055] Missed testcleanup in decimal.rst

2017-04-13 Thread Stefan Krah

Stefan Krah added the comment:

Ok great, maybe I'll take a look.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30055] Missed testcleanup in decimal.rst

2017-04-13 Thread Marco Buttu

Marco Buttu added the comment:

We are not executing the doctests on Travis CI, but I executed them locally.  
That's why I realized there was a missed testcleanup.  The issue27200 wants to 
fix all doctests, and I actually completed the job, but three PRs are still 
opened, and I am waiting for review approval.  If you want to contribute to the 
reviews, look for 'bpo-27200' on the GitHub PRs.  I hope the doctest will be 
run on Travis as soon as possible.  Thanks, Marco

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30055] Missed testcleanup in decimal.rst

2017-04-13 Thread Stefan Krah

Stefan Krah added the comment:

Thanks, looks good.  (I hope GitHub runs the doctests at Travis CI, locally 
most of them failed so I didn't bother to run the tests for this one.)

--
assignee: docs@python -> skrah
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30055] Missed testcleanup in decimal.rst

2017-04-13 Thread Stefan Krah

Stefan Krah added the comment:


New changeset 2c0b5c664ba7d36dc09788d3778d5b33e3fa1bd0 by Stefan Krah (Marco 
Buttu) in branch 'master':
bpo-30055: add testcleanup to leave a fresh context (#1094)
https://github.com/python/cpython/commit/2c0b5c664ba7d36dc09788d3778d5b33e3fa1bd0


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30055] Missed testcleanup in decimal.rst

2017-04-12 Thread Marco Buttu

Changes by Marco Buttu :


--
pull_requests: +1236

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30055] Missed testcleanup in decimal.rst

2017-04-12 Thread Marco Buttu

New submission from Marco Buttu:

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.

--
assignee: docs@python
components: Documentation
messages: 291559
nosy: docs@python, marco.buttu, skrah
priority: normal
severity: normal
status: open
title: Missed testcleanup in decimal.rst
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com