Commits

Show all
Author Commit Message Labels Comments Date
strontium
Add doctest replacements for plural.py, support.py and util.py All doctests now have an equivalent unittest All unittests pass on Py2.6, 2.7 and 3.2
strontium
Add unittests to replace doctests for babel.numbers All tests pass under py2.6,2.7 and 3.2
strontium
Fixed all remaining issues with messages preventing messages tests from passing. Now, all test pass on py2.6, 2.7 and 3.2 Major enhancement to pofile.py allowing pofiles to be read from a number of different sources, also detects encoding, closing ticket 255
strontium
Repalce extract.py doctests with unit tests in tests/extract.py for python 3 all tests/extract.py tests pass for Python 3.2, 2.6 and 2.7 Modified string.decode(encoding) to be skipped in extract.py for Py3.0+ because it is redundant for Python 3 Fixed binary+string concatenation for python 3 in tests/extract.py as that cant be done for python 3
strontium
Add unittests to replace doctests for catalog.py. All tests pass for catalog.py in Py2.6,2.7 and 3.2 Fixup unicode string converting in catalog.py not needed in py3 replace util.py odict class with a new class using Python 3.1+ collection.OrderedDict as original odict did not work in Py3
strontium
Add replacements for disabled Doctests for localedata.py Testsuite runs OK for Localedata for Py2.6,2.7 and 3.2
strontium
Add unittests to replace deactivated doctests for Python 3 for dates.py dates.py passes all tests for Py2.6, Py2.7 and Py3.2
strontium
Removed Dictmixin from py2compat as collections.UserDict seems to be a good match, provided it is _init_'d 2to3 doesnt convert doctests properly, so just disable them for py3+ Created a new unittest replacing ALL of the code.py doctests Completely passes test suite on py2.6,2.7 core.py doctest replacements and original unittests all pass under py3.2
strontium
Clear all relevent warnings from test suite run with python -3 Add tests and errors for running scripts under python 3.
strontium
First pass at self patching to run on Python3.x using 2to3 and minimising in source patches. py2compat.py added to contain backward fixes for missing functionality. custom_fixers added to hold any necessary custom 2to3 fixers.
Felix Schwarz
small test refactoring/cleanup
Felix Schwarz
add 0.9.6 release date in Changelog for trunk
Felix Schwarz
use cPickle instead of pickle for better performance (fixes #225) import_cldr on my system was about 20% faster with this patch (13.9 sec vs. 16.9 sec)
Felix Schwarz
test refactoring: clear global babel logger handlers to decrease test interdependencies (follow-up on #227)
Felix Schwarz
babel.messages.pofile should only apply encoding when actually writing a file (eases Python 3 transition, closes #251)
Felix Schwarz
rename babel.localedata.list() to ease Python 3 transition (fixes #250)
Felix Schwarz
Catalog class should not do decoding of input strings (fixes #256)
Felix Schwarz
catalog.add() now returns the message instance (closes #245)
Felix Schwarz
fix a couple of frontend tests so they actually test something (fixes #260)
Felix Schwarz
add actual unit tests for #227 and add missing changelog entry
Felix Schwarz
add missing changelog entries in 0.9.6 section of trunk changelog
Felix Schwarz
add changelog entry for #200
Felix Schwarz
catch exception if environment contains an invalid locale setting (fixes #200)
Felix Schwarz
remove unnecessary import
Felix Schwarz
added some more items to svn:ignore
Felix Schwarz
cleanup: remove unused imports
jrui...@59ecc08e-a131-0410-9ea7-d4c0f28ac310
Update the copyright line.
jrui...@59ecc08e-a131-0410-9ea7-d4c0f28ac310
Bump the copyright.
jrui...@59ecc08e-a131-0410-9ea7-d4c0f28ac310
Copy is imported, but never used. Get rid of it.
jrui...@59ecc08e-a131-0410-9ea7-d4c0f28ac310
Get rid of the utility code for itemgetter(), we now simply import this from operator.
  1. Prev
  2. Next