Commit Graph

1869 Commits

Author SHA1 Message Date
Floris Bruynooghe ca84a5e8e0 Rename pytest_assert_compare to pytest_assert_binrepr
Holger prefers to only have one hook and it also turns out that "in"
is actually a ast.Compare node as well too.

This also modifies the pytest_assert_binrepr hook slightly so that
it's more accomodating to other operators then just compare (i.e.
don't bail out as soon as the types of the operands differ).

--HG--
branch : trunk
2010-09-22 00:56:39 +01:00
Floris Bruynooghe b86207a6c1 Don't load py.test.config inside py._code._assertionnew
Loading py.test.config triggers py.test initialisation while py.code
should stay independent of py.test.  By adding the hook as an
attribute to py.test AssertionError py.code can get access to the
hooks only when py.test is loaded already.

--HG--
branch : trunk
2010-09-22 00:26:12 +01:00
Floris Bruynooghe abab8f6f63 Move all tests to test_pytest_assertion
The py.code code is independent of any py.test specifics so we should
avoid creating dependencies on py.test in those parts.

--HG--
branch : trunk
2010-09-18 13:03:28 +01:00
Floris Bruynooghe 0af90e0962 Add specialised explanations to the demo
This currently breaks the test_failuers.py example as that file counts
the number of failures in the demo.  But this demo isn't fixed yet so
we'll leave it for now.

--HG--
branch : trunk
2010-09-16 01:07:53 +01:00
Floris Bruynooghe 58169edc8e Add set comparison
Also add a (too) simple mechanism too truncate too long explanations.

--HG--
branch : trunk
2010-09-16 01:06:07 +01:00
Floris Bruynooghe 6fb56443a9 Split the tests between the core and plugin
The tests for _assertionnew are much better, the ones for
pytest_assert_compare() are still not great.

--HG--
branch : trunk
2010-09-08 22:21:52 +01:00
Floris Bruynooghe 2b3ac35780 Merge py-trunk tip
--HG--
branch : trunk
2010-09-07 22:45:19 +01:00
holger krekel c17bb32f70 patch from flub to allow callable objects as hook implementations
--HG--
branch : trunk
2010-09-07 10:03:11 +02:00
Floris Bruynooghe f194b16a09 Don't import difflib and pprint up-front
Builtin plugins need to keep their import time to a minimum.
Therefore it's better to delay importing till you really need it, i.e.
use py.std.* in this case.

--HG--
branch : trunk
2010-09-06 19:46:58 +01:00
Floris Bruynooghe cd013746cf Initial patch as sent to py-dev
With a small but disasterous typo fixed though.

--HG--
branch : trunk
2010-09-06 19:35:17 +01:00
holger krekel 95bafbccd1 fix issue116 : --doctestmodules also works in the presence of __init__.py files, done by fixing the underlyingly used path.pyimport()
--HG--
branch : trunk
2010-09-04 09:21:35 +02:00
holger krekel d8fcc96563 committed a xfailing test for sibling conftests
--HG--
branch : trunk
2010-08-02 16:39:36 +02:00
holger krekel 31c91796c6 bumping version number to 1.3.4a1
--HG--
branch : trunk
2010-08-01 20:44:11 +02:00
holger krekel 8f2b0d0889 test and fix for apipkg (also available in apipkg default branch)
--HG--
branch : trunk
2010-08-01 20:43:02 +02:00
holger krekel ba1f6336af add 1.3.3 release "announcement"
--HG--
branch : trunk
2010-08-01 15:21:59 +02:00
holger krekel 782430c614 Added tag 1.3.3 for changeset c59d3fa8681a
--HG--
branch : trunk
2010-07-31 01:07:12 +02:00
holger krekel 3654592959 bump version, prepare 1.3.3
--HG--
branch : trunk
2010-07-30 15:06:50 +02:00
holger krekel 6aab9bcfb9 another whitespace-correction commit
--HG--
branch : trunk
2010-07-30 15:05:24 +02:00
holger krekel efeae72509 fixes issue113 - assertion represenation issue
--HG--
branch : trunk
2010-07-29 12:55:39 +02:00
holger krekel 92bfb58798 fix bug on writing out objects with terminalwriter on windows
--HG--
branch : trunk
2010-07-29 11:32:24 +02:00
holger krekel 74523a9d09 avoid loading conftest files which are exactly the same content as a previously loaded conftest file
--HG--
branch : trunk
2010-07-29 11:22:16 +02:00
holger krekel e5d09b771a fix windows32 terminal coloring
--HG--
branch : trunk
2010-07-28 17:33:26 +02:00
holger krekel 677f7c0a6a remove trailing whitespace everywhere
--HG--
branch : trunk
2010-07-26 21:15:15 +02:00
holger krekel 1693b9c407 update issues
--HG--
branch : trunk
2010-07-26 19:54:34 +01:00
holger krekel b14f8505d0 fix test on python2.4
--HG--
branch : trunk
2010-07-26 13:34:59 +02:00
holger krekel ed8e24312c fix terminal dimension detection to work with stdout
--HG--
branch : trunk
2010-07-26 13:13:10 +02:00
holger krekel 71cb42d263 updating some feature descriptions
--HG--
branch : trunk
2010-07-08 20:13:39 +02:00
holger krekel 74d3acea02 Added tag 1.3.2 for changeset 3bff44b188a7
--HG--
branch : trunk
2010-07-08 17:20:55 +02:00
holger krekel caf5bdbf89 re-add exclude pattern
--HG--
branch : trunk
2010-07-08 17:20:52 +02:00
holger krekel 6ea944a350 don't run too-long-filename test
--HG--
branch : trunk
2010-07-08 15:54:51 +02:00
holger krekel 9d47521cf0 finalizing docs
--HG--
branch : trunk
2010-07-08 15:28:54 +02:00
holger krekel 86440b1853 ship distribute_setup.py version 0.6.13
--HG--
branch : trunk
2010-07-08 13:40:19 +02:00
holger krekel e98b15eb67 fix windows homedir detection
--HG--
branch : trunk
2010-07-08 12:35:43 +02:00
holger krekel 1ffe0e7b82 using improved versioing
--HG--
branch : trunk
2010-07-07 18:08:16 +02:00
holger krekel 3c069544fc bold summary line
--HG--
branch : trunk
2010-07-07 16:41:28 +02:00
holger krekel 4d4344212f fixing a doc reference, removing development dependency
--HG--
branch : trunk
2010-07-07 16:37:28 +02:00
holger krekel eddd16d9fd progressing towards 1.3.2, adding announcement, regen docs
--HG--
branch : trunk
2010-07-07 15:41:28 +02:00
holger krekel 37a2898f18 reintroduce --junit - i think it is actually useful
--HG--
branch : trunk
2010-07-07 14:43:31 +02:00
holger krekel af5e18e26c small fix
--HG--
branch : trunk
2010-07-07 13:07:34 +02:00
holger krekel 320835d43f split out pytest-xdist related reporting to the plugin
--HG--
branch : trunk
2010-07-07 12:41:15 +02:00
holger krekel 2664230fad fix test for python2.7
--HG--
branch : trunk
2010-07-06 13:29:32 +02:00
holger krekel 48d818742c adjust tox.ini
--HG--
branch : trunk
2010-07-06 12:04:22 +02:00
holger krekel 2b13836efa use the new sdistfile option
--HG--
branch : trunk
2010-07-05 18:40:49 +02:00
holger krekel 195d066ff8 skip sdist on hudson
--HG--
branch : trunk
2010-07-05 17:14:20 +02:00
holger krekel 1e8b59e39f updating tox.ini to new format
--HG--
branch : trunk
2010-07-05 15:55:21 +02:00
holger krekel b28c439494 some minor compatibility issues wrt to the just released python2.7
--HG--
branch : trunk
2010-07-04 22:13:12 +02:00
holger krekel 223a04be27 fix doc env
--HG--
branch : trunk
2010-07-04 19:16:49 +02:00
holger krekel 3aefaff44f improve testing of docs
--HG--
branch : trunk
2010-07-04 18:25:22 +02:00
holger krekel f9c5b00ffa refine and extend custom error reporting particularly for collection-related errors
--HG--
branch : trunk
2010-07-04 17:06:50 +02:00
holger krekel e533e63bbf enable some more tests
--HG--
branch : trunk
2010-07-04 13:56:03 +02:00