summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Moved imports from test to top of file.Maurits van Rees2022-11-091-11/+8
|
* Test that Python 3.11 co_positions works in our DummyFrame.Maurits van Rees2022-11-082-4/+10
|
* Catch exceptions in formatExceptionOnly.Maurits van Rees2022-11-082-1/+49
| | | | | Getting an exception when reporting about a different exception is not helpful. On Python 3.11 this is needed for some HTTPErrors.
* Fix tests on Python 3.11.Maurits van Rees2022-11-081-0/+9
| | | | | | | For DummyTraceback we need tb_lasti. For DummyFrame we need co_positions. See https://docs.python.org/3/reference/datamodel.html#traceback-objects and https://docs.python.org/3/reference/datamodel.html#codeobject.co_positions
* tox -e isort-applyMaurits van Rees2022-11-085-13/+19
|
* More adaption to Python 3.10 syntax error messageBen Greiner2022-02-111-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | $ python2.7 -c 'syntax error' File "<string>", line 1 syntax error ^ SyntaxError: invalid syntax $ python3.6 -c 'syntax error' File "<string>", line 1 syntax error ^ SyntaxError: invalid syntax $ python3.8 -c 'syntax error' File "<string>", line 1 syntax error ^ SyntaxError: invalid syntax $ python3.9 -c 'syntax error' File "<string>", line 1 syntax error ^ SyntaxError: invalid syntax $ python3.10 -c 'syntax error' File "<string>", line 1 syntax error ^^^^^ SyntaxError: invalid syntax
* Make linter happy.Michael Howitz2021-06-011-1/+2
|
* Config with pure python (#20)Michael Howitz2021-06-011-4/+4
| | | | | * Add official support for Python 3.9. * Undo dropping support for Python 3.5. * Drop support for running the tests using `python setup.py test`.
* Adapt to python 3.10 SyntaxError messages (#19)Arthur Zamarin2021-06-011-1/+1
| | | Co-authored-by: Marius Gedminas <marius@gedmin.as>
* Add preliminary support for Python 3.9 (#16)Michael Howitz2020-07-162-2/+9
| | | | * Adapt tests to Python 3.9. * Drop support for Python 3.5 as its sunset is in some months.
* A better way to suppress unused import warningsMarius Gedminas2020-04-102-3/+15
|
* Roll back some of the changes as per review commentsMarius Gedminas2020-04-102-22/+16
|
* Add tox -e flake8, fix flake8 errorsMarius Gedminas2020-04-106-50/+69
|
* Fix non-ASCII supplement info under Python 2 and drop Py3.3.issue1Jason Madden2017-09-114-104/+166
| | | | | | | | | | Fixes #1. Fix the coverage environment using zope.testrunner (nose no longer works, that same namespace path issue). Also run the doctests on all supported versions. This requires dropping Python 3.3 because sphinx needs 3.4+.
* 100% coverage through standardizing the no cover pragma directives and ↵Jason Madden2017-04-246-12/+12
| | | | adding two.
* Make exceptionformatter.extract_stack signature comply with ↵Adam Groszer2015-08-212-2/+11
| | | | traceback.extract_stack
* use new style format() for the templateAdam Groszer2015-08-131-6/+5
|
* fix py3kAdam Groszer2015-08-121-2/+2
|
* fix tests according to lastest changesAdam Groszer2015-08-121-31/+97
|
* check __exception_formatter__ also in extractStackAdam Groszer2015-08-121-0/+8
|
* obey limit by cutting the middle of the results, not the precious endAdam Groszer2015-08-121-10/+27
|
* Silence Py3k deprecation of 'cgi.escape'.Tres Seaver2015-02-271-2/+5
|
* - Make sure that ``setup.py`` finds all tests. Now tox runs them all as well.Stephan Richter2013-02-281-4/+5
| | | | | - Fix failing test under Python 3. - Made buildout work under Python 3 and Buildout 2.
* Fix test failure under Python 2.6.Marius Gedminas2012-12-191-4/+4
| | | | | | | | The code was correct, the test incorrectly assumed exec 'foo =' would cause the same kind of SyntaxError under all Python versions. That turned out not to be the case.
* Fix HTML-escaping bug in format_exception(as_html=True).Marius Gedminas2012-12-102-9/+30
|
* Fixed optional dependency code for `zope.security` to work under Python 3.3.Hanno Schlichting2012-08-201-1/+1
|
* Coverage.Tres Seaver2012-05-161-1/+1
|
* Add Sphinx docs.Tres Seaver2012-04-062-10/+15
|
* Removed use of '2to3' and associated fixers when installing under Py3k.Tres Seaver2012-04-064-12/+20
| | | | | | | | The code is now in a "compatible subset" which supports Python 2.6, 2.7, and 3.2 We also now explicitly support PyPy 1.8 (the version compatible with the 2.7 language spec).
* 100% unit test coverage.Tres Seaver2012-04-061-0/+60
|
* Coverage.Tres Seaver2012-04-061-2/+2
|
* Complete coverage for z.e.exceptionformatter.print_exception.Tres Seaver2012-04-062-1/+38
|
* Complete coverage for z.e.exceptionformatter.HTMLExceptionFormatter.Tres Seaver2012-04-061-0/+48
|
* <p> tags cannot contain <ul> tags.Tres Seaver2012-04-062-3/+3
|
* Begin coverage for HTMLExceptionFormatter.Tres Seaver2012-04-061-0/+37
|
* Complete coverage for z.e.exceptionformatter.TextExceptionFormatter.Tres Seaver2012-04-061-0/+123
|
* Cleanup.Tres Seaver2012-04-061-3/+1
|
* Coverage.Tres Seaver2012-04-061-4/+113
|
* Clarify exception when both 'tb' and 'f' are passed.Tres Seaver2012-04-061-1/+1
|
* Coverage.Tres Seaver2012-04-061-3/+165
|
* Cleanups.Tres Seaver2012-04-061-11/+16
| | | | | | | | | | Remove 'show_revisions' fossil. Factor out HTML-specific bits from TextExceptionFormatter's 'formatSupplement' into new 'formatSupplementInfo' method, overridden by HTMLExceptionFormatter. Mark non-coverable junk.
* Clean up existing unit tests.Tres Seaver2012-04-061-151/+187
|
* Wrap long line.Tres Seaver2012-04-061-1/+2
|
* Fix: missed to reverse extractStack entriesAdam Groszer2012-03-281-0/+1
|
* Added TextExceptionFormatter.extractStack and extract_stackAdam Groszer2012-03-282-8/+107
|
* Fix deprecated unittest functions: assert_ and assertEquals.Brian Sutherland2011-07-201-19/+19
|
* Fallback to traceback.format_tb when the formatter is called recursively.Brian Sutherland2011-07-202-1/+25
| | | | | | | | i.e. Don't let errors in the formatter pass silently. This patch saves lots of hair pulling with doctest encoding issues under zope.testrunner.
* Relax a check, PyPy throws "ImportError: No module named zope.security"Gediminas Paulauskas2011-04-181-1/+1
|
* Fixed tests to work under Python 2.7. In 2.7 "exec" works like the normal ↵Hanno Schlichting2010-07-061-9/+2
| | | | Python compiler and automatically assumes a newline at the end of a file. Before Python 2.7 exec required an explicit newline. By using an explicit newline the exception is the same under all versions.
* PEP8 cleanup and removed obsolete build infrastructure files.Hanno Schlichting2010-07-066-25/+22
|