Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Allow i18n:ignore and i18n:ignore-attributes | Gil Forcada Codinachs | 2015-09-02 | 3 | -0/+16 |
| | | | | | They are used by i18ndude to mark strings or attributes on a template that should not be translatable. | ||||
* | Add Python3.2 support. | Jason Madden | 2015-06-05 | 5 | -32/+68 |
| | |||||
* | Update bad-entity handling FBO pypy3. | Tres Seaver | 2015-04-02 | 1 | -1/+4 |
| | |||||
* | Fix import error uncovered by nose. | Tres Seaver | 2015-02-23 | 1 | -2/+2 |
| | |||||
* | Don't require scribbling on 'sys' to use 'runtest'. | Tres Seaver | 2015-02-22 | 2 | -23/+21 |
| | | | | Allow passing in 'argv' and 'out' from caller. | ||||
* | Make 'test_files' nose-compatible. | Tres Seaver | 2015-02-22 | 1 | -43/+38 |
| | | | | | | | | - Don't use a testcase class w/ non-standard '__init__'; instead, synthesize testcases from files using 'unittest.FunctionTestCase'. - Use a generator to return synthesized tests to nose (since it doesn't know from zope.testrunners' 'test_suite()' convention. | ||||
* | Hide non-directly-runnable testcase class from nose. | Tres Seaver | 2015-02-22 | 2 | -6/+6 |
| | |||||
* | Normalize suite construction. | Tres Seaver | 2015-02-22 | 3 | -22/+22 |
| | |||||
* | Drop test-module-as-script boilerplate. | Tres Seaver | 2015-02-22 | 6 | -24/+0 |
| | |||||
* | Suppress 'conver_charrefs' deprecation under Python 3.4. | Tres Seaver | 2015-02-21 | 1 | -1/+6 |
| | | | | Also, ensure that changed behavior in Python 3.5 won't affect us. | ||||
* | Add support for Python 3.4 | Tres Seaver | 2014-12-29 | 1 | -1/+8 |
| | |||||
* | Rewrite the print testing so it works in Python 3.3. | Maurits van Rees | 2014-01-13 | 1 | -2/+10 |
| | |||||
* | Catch warnings in test_translate_existing. | Maurits van Rees | 2014-01-13 | 2 | -12/+19 |
| | | | | Otherwise a warning is printed each time you run the tests. | ||||
* | Minor pep8 for long lines. | Maurits van Rees | 2014-01-13 | 2 | -7/+14 |
| | |||||
* | Fix warning of msgid with different default for Python 3. | Maurits van Rees | 2013-09-21 | 1 | -2/+8 |
| | |||||
* | Fix possible UnicodeDecodeError in warning when msgid already exists. | Maurits van Rees | 2013-09-21 | 2 | -2/+31 |
| | | | | | | | | This happens when comparing 'Read more…' with 'Read moreā¦'. That should not give a warning, because they are really the same, but that would need a fix somewhere else, in the code that gets the value of an i18n:attribute in a different way than an i18n:translate. Added test for the proper printing of the warning. | ||||
* | Fix occasional \r\r\n newlines with XML test files on Windows | Marius Gedminas | 2013-02-11 | 2 | -8/+23 |
| | | | | | The test suite now passes on both Windows and Unix, with both newline styles (CRLF and LF). | ||||
* | Make runtest.py use optparse. | Marius Gedminas | 2013-02-11 | 3 | -54/+74 |
| | | | | | Make python -m zope.tal.runtest work even when your current working directory is not src/zope/tal/ | ||||
* | Use optparse instead of getopt. | Marius Gedminas | 2013-02-11 | 1 | -80/+41 |
| | |||||
* | Whoops, another use of the obsolete setpath hack. | Marius Gedminas | 2013-02-11 | 1 | -3/+0 |
| | |||||
* | Make it possible to filter FileTestCases by filename. | Marius Gedminas | 2013-02-09 | 1 | -0/+5 |
| | | | | | Example: bin/test -t test04.xml | ||||
* | This should make the tests pass on Windows. | Marius Gedminas | 2013-02-08 | 1 | -0/+5 |
| | | | | Does anybody care about Windows? | ||||
* | Explain the - parsing difference (it's the stdlib) | Marius Gedminas | 2013-02-07 | 1 | -2/+2 |
| | |||||
* | Add PyPy support because it's not hard | Marius Gedminas | 2013-02-07 | 1 | -2/+6 |
| | |||||
* | Towards Py3K: - inside attribute values | Marius Gedminas | 2013-02-07 | 1 | -5/+7 |
| | | | | | | | | I've no idea why this case is handled differently on Python 2 and Python 3. There's precedent for different escaping on different Python versions: before 2.6 and since 2.6. Speaking of which, let's drop the "before 2.6" case. | ||||
* | Towards Py3K: Python code inside templates | Marius Gedminas | 2013-02-07 | 1 | -9/+9 |
| | |||||
* | Towards Py3K: use html.escape instead of cgi.escape | Marius Gedminas | 2013-02-07 | 2 | -6/+14 |
| | | | | | | | | There's one difference -- html.escape also escapes single quotes ('), while cgi.escape doesn't. html.escape doesn't exist on Python 2.x, while cgi.escape emits a deprecation warning on Python 3.x. To get unified behavior across all Python versions I had to inline the escape function in zope.tal.taldefs.quote(). | ||||
* | Towards Py3K: builtins (part 2) | Marius Gedminas | 2013-02-07 | 1 | -0/+7 |
| | |||||
* | Towards Py3K: use io.StringIO | Marius Gedminas | 2013-02-07 | 5 | -6/+34 |
| | | | | | | | While Python 2.6+ also has io.StringIO(), using it causes numerous test failures -- because io.StringIO() insists on unicode, and our tests are full of (ASCII-only) native string literals. For this reason I decided to keep using StringIO.StringIO or cStringIO.StringIO on Python 2.x. | ||||
* | Towards Py3K: xml.parsers.expat wants byte strings (part 2) | Marius Gedminas | 2013-02-07 | 1 | -1/+2 |
| | | | | Also avoid ResourceWarning by explicitly closing the file. | ||||
* | Make attribute ordering deterministic | Marius Gedminas | 2013-02-07 | 3 | -6/+6 |
| | |||||
* | Better test failure reporting in FileTestCase | Marius Gedminas | 2013-02-07 | 2 | -11/+22 |
| | | | | | | | | | Previously the diff would be printed to stdout in the middle of a sea of dots, and *then* you'd get test failure assertions mentioning only the filename (and on Python 3.3 you'd also get a gratuitous SystemExit traceback in addition to the assertion failure) Now you get a sane single assertion failure with the diff inside it. | ||||
* | Replace ndiff.py with stdlib's difflib | Marius Gedminas | 2013-02-07 | 2 | -673/+2 |
| | |||||
* | Remove the ancient setpath.py hack | Marius Gedminas | 2013-02-07 | 2 | -49/+0 |
| | | | | | | | | | | | | | | Now you can debug failures by doing, e.g. .tox/py27/bin/python -m zope.tal.driver -s src/zope/tal/tests/input/test24.html .tox/py33/bin/python -m zope.tal.driver -s src/zope/tal/tests/input/test24.html and comparing the emitted bytecode. Note: if you want to use bin/py, you must also use -- to avoid a bug in buildout's interpreter wrapper script: bin/py -m zope.tal.driver -- -s src/zope/tal/tests/input/test24.html | ||||
* | Towards Py3K: avoid deprecated assertion spellings | Marius Gedminas | 2013-02-07 | 4 | -20/+20 |
| | |||||
* | Towards Py3K: xml.parsers.expat wants byte strings | Marius Gedminas | 2013-02-07 | 1 | -13/+13 |
| | |||||
* | Missing errno import | Marius Gedminas | 2013-02-07 | 1 | -0/+1 |
| | |||||
* | Unused imports | Marius Gedminas | 2013-02-07 | 2 | -2/+0 |
| | |||||
* | Towards Py3K: range() returns an iterator | Marius Gedminas | 2013-02-07 | 1 | -1/+1 |
| | |||||
* | Towards Py3K: use f(*args) instead of apply(f, args) | Marius Gedminas | 2013-02-07 | 1 | -1/+1 |
| | |||||
* | Towards Py3K: builtins | Marius Gedminas | 2013-02-07 | 4 | -0/+24 |
| | |||||
* | Towards Py3K: stdlib reorganization | Marius Gedminas | 2013-02-07 | 2 | -3/+15 |
| | | | | | | | StringIO is omitted from this checkin: we can't use io.StringIO nor io.BytesIO, because zope.tal likes to write both byte strings and Unicode objects into the same stream. This will require careful untangling. | ||||
* | Towards Py3K: be prepared for dict views | Marius Gedminas | 2013-02-07 | 5 | -9/+7 |
| | |||||
* | Towards Py3K: iterator protocol | Marius Gedminas | 2013-02-07 | 2 | -2/+3 |
| | |||||
* | Towards Py3K: explicit relative imports | Marius Gedminas | 2013-02-07 | 4 | -5/+5 |
| | |||||
* | Towards Py3K: print() function | Marius Gedminas | 2013-02-07 | 7 | -49/+61 |
| | |||||
* | Towards Py3K: exec(,,) instead of exec in | Marius Gedminas | 2013-02-07 | 1 | -1/+1 |
| | |||||
* | Towards Py3K: use list comprehension instead of filter() | Marius Gedminas | 2013-02-07 | 1 | -1/+1 |
| | |||||
* | Towards Py3K: don't use tuple parameter unpacking | Marius Gedminas | 2013-02-07 | 2 | -25/+46 |
| | |||||
* | Towards Py3K: use the in operator instead of has_key() | Marius Gedminas | 2013-02-07 | 2 | -7/+7 |
| |