summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Read input line by lineJan-Thorsten Peter2022-02-181-1/+1
|
* More Python 2 compatibility code clean up.Tomaz Solc2021-02-051-4/+0
|
* Drop support for Python 2 and 3.4.Tomaz Solc2021-02-052-79/+51
|
* Avoid exception chaining on Python 3.Tomaz Solc2021-01-081-0/+9
| | | | | | This avoids exceptions raised by errors='strict' from displaying as "During handling of the above exception ..." in the backtrace which can be confusing.
* Convert examples in README to Python 3 syntax.Tomaz Solc2021-01-081-1/+1
|
* Rename argument replace_char -> replace_strTomaz Solc2020-12-201-2/+2
|
* Add errors parameter to unidecode()Tomaz Solc2020-12-201-1/+36
| | | | This implements the idea in https://github.com/avian2/unidecode/pull/53
* Also test command-line utility return code.Tomaz Solc2019-06-161-5/+9
|
* Fix unit test on PyPy 7.1.1Tomaz Solc2019-06-161-2/+6
| | | | https://github.com/avian2/unidecode/issues/50
* Replace unnecessary _u() compat function with u prefix to stringJon Dufresne2018-12-312-50/+34
| | | | | Both Python 2 & Python 3 support representing Unicode strings with a u prefix. Can drop the _u() compat shim and let the interpreter handle it.
* Check if all spaces are transliterated to spaces.Tomaz Solc2018-12-301-0/+9
| | | | | If x.isspace() is True, then unidecode(x).isspace() should be True as well (unless it is an empty string)
* Drop support for EOL Python 2.6 & 3.3Jon Dufresne2018-06-301-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 2.6 and 3.3 are end of life. They are no longer receiving bug fixes, including for security issues. Python 2.6 went EOL on 2013-10-29 and 3.3 on 2017-09-29. For additional details on supported Python versions, see: https://devguide.python.org/#status-of-python-branches Removing support for EOL Pythons will reduce testing and maintenance resources. Using pypinfo, here are the download statistics for Unidecode over the last 30 days, showing minimal 3.3 & 2.6 installs. $ pypinfo --percent unidecode pyversion | python_version | percent | download_count | | -------------- | ------- | -------------- | | 2.7 | 66.07% | 244,263 | | 3.6 | 19.69% | 72,777 | | 3.5 | 8.27% | 30,585 | | 3.4 | 5.59% | 20,663 | | 3.7 | 0.29% | 1,062 | | 2.6 | 0.06% | 210 | | 3.8 | 0.02% | 72 | | 3.3 | 0.01% | 44 | | 3.2 | 0.00% | 6 | | None | 0.00% | 2 |
* Fix transliteration of enclosed alphanumericsKrzysztof Jurewicz2016-05-291-0/+7
|
* Fix typosJakub Wilk2015-12-101-1/+1
|
* Check type of returned string in unit test.Tomaz Solc2015-11-171-2/+8
|
* Test all variants of the unidecode function.Tomaz Solc2015-11-171-24/+22
|
* Rename unidecode_fast to unidecode_expect_asciiTomaz Solc2015-11-171-3/+3
| | | | | Also, add unidecode_expect_nonascii. "unidecode" is now an alias for "unidecode_expect_ascii"
* Add unidecode_fast function to speedup mostly-ASCII transliterations.dukebody2015-11-141-1/+12
|
* Merge branch 'use-setuptools' into utility-script-2Tomaz Solc2015-05-142-1/+2
|\
| * Skip README doctest on narrow builds.Tomaz Solc2015-05-141-1/+1
| |
| * skip test_unicode_text_converter on narrow buildsTomaz Solc2015-05-141-0/+1
| |
* | Add a newline if the string comes from commandlineTomaz Solc2015-05-141-1/+1
| |
* | Merge branch 'use-setuptools' into utility-script-2Tomaz Solc2015-05-141-1/+5
|\ \ | |/
| * Only doctest README with Python 2.xTomaz Solc2015-05-141-1/+5
| |
* | Merge branch 'use-setuptools' into utility-script-2Tomaz Solc2015-05-141-0/+4
|\ \ | |/
| * Test examples in README.Tomaz Solc2015-05-141-0/+4
| |
* | Merge branch 'use-setuptools' into utility-script-2Tomaz Solc2015-05-141-1/+4
|\ \ | |/
| * Fix surrogate test for Python 3.4Tomaz Solc2015-05-141-1/+4
| |
* | Don't append an extra new-line.Tomaz Solc2015-05-131-1/+1
| |
* | Simplified tests for utility executable.Tomaz Solc2015-05-135-49/+37
| |
* | Add -c command line option.Tomaz Solc2015-05-131-0/+11
| |
* | Use entry_points for the commandline utility.Tomaz Solc2015-05-132-62/+70
| |
* | Merge branch 'use-setuptools' into utility-script-2Tomaz Solc2015-05-133-604/+502
|\ \ | |/ | | | | | | Conflicts: setup.py
| * One test file for both Python 2.x and 3.xTomaz Solc2015-05-133-604/+502
| |
* | Add utility script and tests.Tomaz Solc2015-05-135-0/+65
|/ | | | Patch contributed by Andrew Udvare.
* Check that surrogates translate to nothing.Tomaz Solc2014-12-081-0/+14
|
* Removed warning test code duplication.Tomaz Solc2014-12-071-24/+29
|
* Issue a warning if a surrogate char is encounteredTomaz Solc2014-12-072-0/+45
| | | | Also, improved the section in README regarding "narrow" Python builds.
* Add some missing script latin letters.Tomaz Solc2014-12-071-0/+3
|
* Add missing double-struck capital letters.Tomaz Solc2014-12-071-0/+42
|
* Restore tests for a, o, u with umlauts.Tomaz Solc2013-08-221-10/+8
|
* Add test against WordPress remove_accents() tableTomaz Solc2013-05-301-0/+204
|
* Replace deprecated failUnless methods with assertTomaz Solc2013-01-272-21/+21
|
* Only count unicode-related warnings in test.Tomaz Solc2013-01-271-1/+5
|
* Python 2.5 compatible way of running tests.Tomaz Solc2013-01-171-6/+0
|
* Check for warnings in unit test.Tomaz Solc2013-01-171-0/+20
|
* Warn if argument is not a subclass of unicodeTomaz Solc2013-01-161-0/+2
|
* Always return a string object on Python 2.xTomaz Solc2011-09-222-8/+16
| | | | Before this patch, unidecode() returned a unicode object on Python 2.x if the input was a unicode object that contained ASCII characters. Behaviour on Python 3.x remains unchanged.
* Fixed Python 3.x version of unit tests.Tomaz Solc2011-04-011-1/+1
|
* Skip unit tests that expect a "wide" Python build.Tomaz Solc2011-04-012-0/+35
| | | | Also add a note to README about support for Python builds with "narrow" Unicode characters.