[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2016-05-28 Thread Berker Peksag

Changes by Berker Peksag :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> doctest.DocTestCase fails when run repeatedly

___
Python tracker 

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



[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2012-08-08 Thread Marius Gedminas

Marius Gedminas added the comment:

Duplicate of issue2604?

--
nosy: +mgedmin

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9327
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman

New submission from Patrick Strawderman patr...@zope.com:

doctest.DocFileTest inserts the test's path into the globs as __file__,
but doctest.DocTestCase's tearDown method simply calls globs.clear(),
so that subsequent runs of the test case will not receive the same
initial globals.

This means that doctests referencing __file__ cannot be run repeatedly
without using a custom setUp that restores __file__.

I think most would expect symmetry between setUp and tearDown, and in
fact zope.testrunner operates with this false assumption when run
with the -N option to repeat a test N times.

--
components: Library (Lib)
messages: 27
nosy: boogenhagn, fdrake
priority: normal
severity: normal
status: open
title: doctest DocFileCase setUp/tearDown asymmetry
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9327
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman

Changes by Patrick Strawderman patr...@zope.com:


Added file: http://bugs.python.org/file18114/doctestbug.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9327
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman

Changes by Patrick Strawderman patr...@zope.com:


--
versions:  -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9327
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman

Changes by Patrick Strawderman patr...@zope.com:


Removed file: http://bugs.python.org/file18114/doctestbug.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9327
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman

Changes by Patrick Strawderman patr...@zope.com:


Removed file: http://bugs.python.org/file18115/doctestbugpy3.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9327
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman

Changes by Patrick Strawderman patr...@zope.com:


Added file: http://bugs.python.org/file18116/doctestbug.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9327
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com