summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Allow i18n:ignore and i18n:ignore-attributesGil Forcada Codinachs2015-09-023-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 Madden2015-06-055-32/+68
|
* Update bad-entity handling FBO pypy3.Tres Seaver2015-04-021-1/+4
|
* Fix import error uncovered by nose.Tres Seaver2015-02-231-2/+2
|
* Don't require scribbling on 'sys' to use 'runtest'.Tres Seaver2015-02-222-23/+21
| | | | Allow passing in 'argv' and 'out' from caller.
* Make 'test_files' nose-compatible.Tres Seaver2015-02-221-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 Seaver2015-02-222-6/+6
|
* Normalize suite construction.Tres Seaver2015-02-223-22/+22
|
* Drop test-module-as-script boilerplate.Tres Seaver2015-02-226-24/+0
|
* Suppress 'conver_charrefs' deprecation under Python 3.4.Tres Seaver2015-02-211-1/+6
| | | | Also, ensure that changed behavior in Python 3.5 won't affect us.
* Add support for Python 3.4Tres Seaver2014-12-291-1/+8
|
* Rewrite the print testing so it works in Python 3.3.Maurits van Rees2014-01-131-2/+10
|
* Catch warnings in test_translate_existing.Maurits van Rees2014-01-132-12/+19
| | | | Otherwise a warning is printed each time you run the tests.
* Minor pep8 for long lines.Maurits van Rees2014-01-132-7/+14
|
* Fix warning of msgid with different default for Python 3.Maurits van Rees2013-09-211-2/+8
|
* Fix possible UnicodeDecodeError in warning when msgid already exists.Maurits van Rees2013-09-212-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 WindowsMarius Gedminas2013-02-112-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 Gedminas2013-02-113-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 Gedminas2013-02-111-80/+41
|
* Whoops, another use of the obsolete setpath hack.Marius Gedminas2013-02-111-3/+0
|
* Make it possible to filter FileTestCases by filename.Marius Gedminas2013-02-091-0/+5
| | | | | Example: bin/test -t test04.xml
* This should make the tests pass on Windows.Marius Gedminas2013-02-081-0/+5
| | | | Does anybody care about Windows?
* Explain the &#45 parsing difference (it's the stdlib)Marius Gedminas2013-02-071-2/+2
|
* Add PyPy support because it's not hardMarius Gedminas2013-02-071-2/+6
|
* Towards Py3K: &#45 inside attribute valuesMarius Gedminas2013-02-071-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 templatesMarius Gedminas2013-02-071-9/+9
|
* Towards Py3K: use html.escape instead of cgi.escapeMarius Gedminas2013-02-072-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 Gedminas2013-02-071-0/+7
|
* Towards Py3K: use io.StringIOMarius Gedminas2013-02-075-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 Gedminas2013-02-071-1/+2
| | | | Also avoid ResourceWarning by explicitly closing the file.
* Make attribute ordering deterministicMarius Gedminas2013-02-073-6/+6
|
* Better test failure reporting in FileTestCaseMarius Gedminas2013-02-072-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 difflibMarius Gedminas2013-02-072-673/+2
|
* Remove the ancient setpath.py hackMarius Gedminas2013-02-072-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 spellingsMarius Gedminas2013-02-074-20/+20
|
* Towards Py3K: xml.parsers.expat wants byte stringsMarius Gedminas2013-02-071-13/+13
|
* Missing errno importMarius Gedminas2013-02-071-0/+1
|
* Unused importsMarius Gedminas2013-02-072-2/+0
|
* Towards Py3K: range() returns an iteratorMarius Gedminas2013-02-071-1/+1
|
* Towards Py3K: use f(*args) instead of apply(f, args)Marius Gedminas2013-02-071-1/+1
|
* Towards Py3K: builtinsMarius Gedminas2013-02-074-0/+24
|
* Towards Py3K: stdlib reorganizationMarius Gedminas2013-02-072-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 viewsMarius Gedminas2013-02-075-9/+7
|
* Towards Py3K: iterator protocolMarius Gedminas2013-02-072-2/+3
|
* Towards Py3K: explicit relative importsMarius Gedminas2013-02-074-5/+5
|
* Towards Py3K: print() functionMarius Gedminas2013-02-077-49/+61
|
* Towards Py3K: exec(,,) instead of exec inMarius Gedminas2013-02-071-1/+1
|
* Towards Py3K: use list comprehension instead of filter()Marius Gedminas2013-02-071-1/+1
|
* Towards Py3K: don't use tuple parameter unpackingMarius Gedminas2013-02-072-25/+46
|
* Towards Py3K: use the in operator instead of has_key()Marius Gedminas2013-02-072-7/+7
|