hpk42 / py-trunk (http://pytest.org/)

py lib / py.test main development.

Clone this repository (size: 10.1 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/hpk42/py-trunk/
commit 1641: c143a8c8840a
parent 1640: cd5f4f2caa97
branch: trunk
tags: 1.2.1
going for the 1.2.1 release
hpk
6 weeks ago

Changed (Δ2.9 KB):

raw changeset »

CHANGELOG (4 lines added, 3 lines removed)

MANIFEST.in (1 lines added, 1 lines removed)

doc/announce/release-1.2.1.txt (66 lines added, 0 lines removed)

py/__init__.py (1 lines added, 1 lines removed)

setup.py (1 lines added, 1 lines removed)

Up to file-list CHANGELOG:

1
1
Changes between 1.2.1 and 1.2.0
2
2
=====================================
3
3
4
- refined usage and options for "py.cleanup":
4
- refined usage and options for "py.cleanup"::
5
5
6
    py.cleanup     # remove "*.pyc" and "*$py.class" (jython) files
6
7
    py.cleanup -e .swp -e .cache # also remove files with these extensions
7
8
    py.cleanup -s  # remove "build" and "dist" directory next to setup.py files
@@ -16,8 +17,8 @@ Changes between 1.2.1 and 1.2.0
16
17
- display a short and concise traceback if a funcarg lookup fails 
17
18
18
19
- early-load "conftest.py" files in non-dot first-level sub directories. 
19
  allows to conveniently keep and access test-related options without 
20
  having to put a conftest.py into the package root dir.
20
  allows to conveniently keep and access test-related options in a ``test`` 
21
  subdir and still add command line options. 
21
22
22
23
- fix issue67: new super-short traceback-printing option: "--tb=line" will print a single line for each failing (python) test indicating its filename, lineno and the failure value
23
24

Up to file-list MANIFEST.in:

@@ -10,7 +10,7 @@ graft bin
10
10
graft testing
11
11
#exclude *.orig 
12
12
#exclude *.rej 
13
exclude .hginore
13
#exclude .hginore
14
14
#exclude *.pyc
15
15
#recursive-exclude testing *.pyc *.orig *.rej *$py.class
16
16
#prune .pyc

Up to file-list doc/announce/release-1.2.1.txt:

1
py.test/pylib 1.2.1: little fixes and improvements 
2
--------------------------------------------------------------------------------
3
4
py.test is an advanced automated testing tool working with
5
Python2, Python3 and Jython versions on all major operating
6
systems.  It has a simple plugin architecture and can run many 
7
existing common Python test suites without modification.  It offers 
8
some unique features not found in other testing tools.  
9
See http://pytest.org for more info.
10
11
py.test 1.2.1 brings bug fixes and some new options and abilities triggered 
12
by user feedback:
13
14
* --funcargs [testpath]  will show available builtin- and project funcargs.
15
* display a short and concise traceback if funcarg lookup fails.
16
* early-load "conftest.py" files in non-dot first-level sub directories. 
17
* --tb=line will print a single line for each failing test (issue67)
18
* py.cleanup has a number of new options, cleanups up setup.py related files
19
* fix issue78: always call python-level teardown functions even if the
20
  according setup failed.  
21
22
For more detailed information see the changelog below. 
23
24
cheers and have fun,
25
26
holger 
27
28
29
Changes between 1.2.1 and 1.2.0
30
=====================================
31
32
- refined usage and options for "py.cleanup"::
33
34
    py.cleanup     # remove "*.pyc" and "*$py.class" (jython) files
35
    py.cleanup -e .swp -e .cache # also remove files with these extensions
36
    py.cleanup -s  # remove "build" and "dist" directory next to setup.py files
37
    py.cleanup -d  # also remove empty directories 
38
    py.cleanup -a  # synonym for "-s -d -e 'pip-log.txt'"
39
    py.cleanup -n  # dry run, only show what would be removed
40
41
- add a new option "py.test --funcargs" which shows available funcargs 
42
  and their help strings (docstrings on their respective factory function) 
43
  for a given test path
44
45
- display a short and concise traceback if a funcarg lookup fails 
46
47
- early-load "conftest.py" files in non-dot first-level sub directories. 
48
  allows to conveniently keep and access test-related options in a ``test`` 
49
  subdir and still add command line options. 
50
51
- fix issue67: new super-short traceback-printing option: "--tb=line" will print a single line for each failing (python) test indicating its filename, lineno and the failure value
52
53
- fix issue78: always call python-level teardown functions even if the
54
  according setup failed.  This includes refinements for calling setup_module/class functions 
55
  which will now only be called once instead of the previous behaviour where they'd be called
56
  multiple times if they raise an exception (including a Skipped exception).  Any exception
57
  will be re-corded and associated with all tests in the according module/class scope.
58
59
- fix issue63: assume <40 columns to be a bogus terminal width, default to 80
60
61
- fix pdb debugging to be in the correct frame on raises-related errors 
62
63
- update apipkg.py to fix an issue where recursive imports might
64
  unnecessarily break importing 
65
66
- fix plugin links 

Up to file-list py/__init__.py:

@@ -8,7 +8,7 @@ dictionary or an import path.
8
8
9
9
(c) Holger Krekel and others, 2004-2010
10
10
"""
11
version = "1.2.0post1"
11
version = "1.2.1"
12
12
13
13
__version__ = version = version or "1.2.x"
14
14
import py.apipkg

Up to file-list setup.py:

@@ -27,7 +27,7 @@ def main():
27
27
        name='py',
28
28
        description='py.test and pylib: rapid testing and development utils.',
29
29
        long_description = long_description,
30
        version= trunk or '1.2.0post1',
30
        version= trunk or '1.2.1',
31
31
        url='http://pylib.org',
32
32
        license='MIT license',
33
33
        platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],