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.

classification
Title: Add file comparisons to the unittest library
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.1, Python 2.7
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: zseil Nosy List: georg.brandl, orsenthil, wehart, zseil
Priority: normal Keywords:

Created on 2008-10-28 00:26 by wehart, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg75271 - (view) Author: Bill Hart (wehart) Date: 2008-10-28 00:26
In the past year I've become a heavy user of the unittest package for
managing a variety of software tests.  One capability that I've
frequently needed is the ability to generate text file outputs that can
be compared against a baseline.  To my knowledge, this is not currently
supported in unittest.

I've developed several file comparison functions that are written in a
unittest-like style.  See

 
https://software.sandia.gov/svn/public/pyutilib/trunk/pyutilib_th/pyunit.py

for the test functions, and 

  https://software.sandia.gov/svn/public/pyutilib/trunk/pyutilib_th/misc.py

for the underlying file comparison functions.
msg85148 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-04-02 03:02
I'm not sure we need new unittest functions for file comparison; but a
function in difflib that directly takes two filenames would perhaps be
accepted.  That will need a new patch however.
History
Date User Action Args
2022-04-11 14:56:40adminsetgithub: 48467
2009-04-02 03:02:44georg.brandlsetstatus: open -> closed

nosy: + zseil, georg.brandl
messages: + msg85148

assignee: zseil
resolution: rejected
2008-12-18 14:40:22orsenthilsetnosy: + orsenthil
2008-10-28 02:26:23benjamin.petersonsetversions: + Python 3.1, Python 2.7
2008-10-28 00:26:25wehartcreate