summaryrefslogtreecommitdiff
path: root/test/base/test_except.py
Commit message (Collapse)AuthorAgeFilesLines
* Make all tests to be PEP8 compliantKhairi Hafsham2017-02-071-0/+1
| | | | | | | | tested using pycodestyle version 2.2.0 Fixes: #3885 Change-Id: I5df43adc3aefe318f9eeab72a078247a548ec566 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/343
* - Added support for the case of the misbehaving DBAPI that hasMike Bayer2015-05-151-0/+57
| | | | | | | | | | | pep-249 exception names linked to exception classes of an entirely different name, preventing SQLAlchemy's own exception wrapping from wrapping the error appropriately. The SQLAlchemy dialect in use needs to implement a new accessor :attr:`.DefaultDialect.dbapi_exception_translation_map` to support this feature; this is implemented now for the py-postgresql dialect. fixes #3421
* - Exception messages have been spiffed up a bit. The SQL statementMike Bayer2014-10-171-13/+21
| | | | | | | | | | | and parameters are not displayed if None, reducing confusion for error messages that weren't related to a statement. The full module and classname for the DBAPI-level exception is displayed, making it clear that this is a wrapped DBAPI exception. The statement and parameters themselves are bounded within a bracketed sections to better isolate them from the error message and from each other. fixes #3172
* pep8Mike Bayer2014-10-171-38/+54
|
* - the test_except test was doing an unnecessary workaround of some kind,Mike Bayer2014-10-121-8/+1
| | | | take that out, restore the better exception logic in exc
* - fix unit test affected by #3075Mike Bayer2014-07-291-5/+8
|
* remove all remaining start/end py2k/py3k blocksMike Bayer2013-06-071-6/+5
|
* - the raw 2to3 runMike Bayer2013-04-271-15/+16
| | | | - went through examples/ and cleaned out excess list() calls
* trying different approaches to test layout. in this one, the testing modulesMike Bayer2012-09-271-2/+2
| | | | | | | become an externally usable package but still remains within the main sqlalchemy parent package. in this system, we use kind of an ugly hack to get the noseplugin imported outside of the "sqlalchemy" package, while still making it available within sqlalchemy for usage by third party libraries.
* -whitespace bonanza, contdMike Bayer2012-07-281-11/+11
|
* who knew we already had a test for thatMike Bayer2011-08-221-12/+19
|
* - remove test.sql._base, test.engine._base, test.orm._base, move those ↵Mike Bayer2011-03-271-2/+2
| | | | | | | classes to a new test.lib.fixtures module - move testing.TestBase to test.lib.fixtures - massive search and replace
* - Non-DBAPI errors which occur in the scope of an `execute()`Mike Bayer2011-02-091-16/+15
| | | | | | | | call are now wrapped in sqlalchemy.exc.StatementError, and the text of the SQL statement and repr() of params is included. This makes it easier to identify statement executions which fail before the DBAPI becomes involved. [ticket:2015]
* - move sqlalchemy.test to test.libMike Bayer2010-11-151-1/+1
|
* restore py2k directive that got whacked by python tidyMike Bayer2010-07-131-3/+3
|
* tidy test/base, test/ex, test/extMike Bayer2010-07-111-45/+77
|
* merge 0.6 series to trunk.Mike Bayer2009-08-061-6/+10
|
* - unit tests have been migrated from unittest to nose.Mike Bayer2009-06-101-0/+119
See README.unittests for information on how to run the tests. [ticket:970]