summaryrefslogtreecommitdiff
path: root/tests/test_util.py
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2022Aarni Koskela2022-01-251-1/+1
|
* Remove redundant _compat.pyHugo van Kemenade2021-09-141-1/+1
|
* Become 2.9.1Aarni Koskela2021-04-281-1/+1
| | | | | * Update copyright year * Update changelog
* Merge branch '2.8-maintenance' into masterAarni Koskela2020-11-111-1/+1
|\
| * Bump copyright year from 2019 to 2020Aarni Koskela2020-11-111-1/+1
| |
* | fix tests when using Python 3.9a6Felix Schwarz2020-05-051-5/+12
|/ | | | | | In Python 3.9a6 integer values for future flags were changed to prevent collision with compiler flags. We need to retrieve these at runtime so the test suite works with Python <= 3.8 as well as Python 3.9.
* Bump copyright year from 2018 to 2019Aarni Koskela2019-05-271-1/+1
|
* Replace odict with Python's collection.OrderedDictJon Dufresne2019-01-251-14/+0
| | | | | | | The odict class duplicates collection.OrderedDict from Python's standard lib. Simplify the code by using builtin Python features. https://docs.python.org/3/library/collections.html#collections.OrderedDict
* add support to util.pathmatch for matching the start of a stringBrian Cappello2018-08-141-0/+5
|
* Rephrase copyright headers to link to the LICENSE file instead of COPYINGauthorsAarni Koskela2018-02-021-1/+1
| | | | Fixes #398
* Update copyright header years, and include the Babel teamAarni Koskela2018-02-021-1/+1
|
* Parse multi-line __future__ imports better (#519)Aarni Koskela2017-08-211-0/+34
| | | | | Augments #426 Augments #427 Augments #510
* Apply pre-commit fixes.Lukas Balaga2016-02-271-0/+2
|
* Fix UnicodeEncodeError on file encoding detectionRoman Imankulov2016-01-041-0/+15
| | | | | | | | If the first line of a python file is not a valid latin-1 string, parse_encoding dies with "UnicodeDecodeError". These strings nonetheless can be valid in some scenarios (for example, Mako extractor uses babel.messages.extract.extract_python), and it makes more sense to ignore this exception and return None.
* FixedOffsetTimezone: fix display of negative offsetsAlex Willmer2015-09-101-0/+13
|
* odict: Fix pop methodRĂ©gis Behmo2015-08-281-2/+13
| | | | | | | The items() and iteritems() methods did not contain correct values after a call to `pop(i)`. Fixes https://github.com/mitsuhiko/babel/issues/196
* remove test suite factoriesAlex Morega2013-07-061-8/+0
|
* copy babel.util doctests as unit testsAlex Morega2013-07-061-1/+14
|
* move unit tests outside babel packageAlex Morega2013-07-061-0/+25