summaryrefslogtreecommitdiff
path: root/test_six.py
Commit message (Collapse)AuthorAgeFilesLines
* Switch dist to focal. (#356)Benjamin Peterson2021-05-051-1/+12
|
* Add assertNotRegex. (#289)Jonathan Vanasco2020-01-081-0/+11
| | | | | | Fixes #288. Co-authored-by: Benjamin Peterson <benjamin@python.org>
* Drop support for EOL Python 2.6 and 3.2. (#314)Hugo van Kemenade2020-01-071-47/+6
| | | | | | | Fixes #308. Stops testing them on the CI, update python_requries and remove some code specifically for those versions. Not done anything to remove any six functionality that's only a benefit on those versions, that should be in a separate PR and would be a breaking change that should ideally deprecate first.
* Fix wraps handing of missing attrs. (#251)immerrr again2020-01-061-4/+23
| | | | | | | | | This is pretty-much a straight backport of Py3 implementations of update_wrapper and (privately) wraps. Fixes #250 Fixes #165 Co-authored-by: Benjamin Peterson <benjamin@python.org>
* 10 years of six!Benjamin Peterson2020-01-061-1/+1
|
* Remove unused inner function. (#310)Thomas Grainger2019-11-141-8/+0
|
* py.test -> pytestBenjamin Peterson2019-11-041-46/+46
|
* Add support for PEP 560. (#305)Ivan Levkivskyi2019-11-041-0/+48
|
* Increment copyright year.Benjamin Peterson2019-06-181-1/+1
|
* Make add_metaclass copy __qualname__ from the original class. (#260)E. M. Bray2018-10-031-0/+20
| | | | Fixes #259.
* add ensure_binary/str/text helper functions (#204)Jingxin Zhu2018-01-251-0/+58
|
* bump copyright yearBenjamin Peterson2018-01-211-1/+1
|
* add test for metaclass subclassesBenjamin Peterson2017-09-171-0/+8
|
* Define __prepare__() in with_metaclass() (#178)Jordan Moldow2017-09-171-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | Define `__prepare__()` in `with_metaclass()`'s temporary metaclass, and make sure that it passes the correct bases to the real metaclass's `__prepare__()`. The temporary metaclass previously didn't extend the `__prepare__()` method, which meant that if the real metaclass had a `__prepare__()`, it wouldn't get called correctly. This could lead to bugs in Python 3 code. The temporary metaclass's `__prepare__()` gets called with ```bases=(temporary_class,)```. Since there was no proxy in the middle, that was getting passed directly to the real metaclass's `__prepare__()`. But then, if the real class's `__prepare__()` method depended on the bases, the logic would be incorrect. This was a problem in projects that use `enum` / `enum34` and try to use `with_metaclass(EnumMeta)`. `enum34.EnumMeta` doesn't define `__prepare__()`, since it is a Python 2 backport. Python 3's `enum.EnumMeta` does define `__prepare__()`, but originally didn't depend at all on the bases. But starting in Python 3.6, `enum.EnumMeta.__prepare__()` will raise `TypeError` if the bases aren't valid for an enum subclass. Thus, a codebase that was successfully using `enum` / `enum34` and `with_metaclass(EnumMeta)` could break on Python 3.6.
* remove moves.getstatusoutputBenjamin Peterson2017-08-271-7/+0
| | | | | Compatibility of Python getstatusoutput was broken in 3.3.4, so a simple renaming indirection doesn't suffice. See #207.
* Add moves for getoutput and getstatusoutput.Lucas Wiman2017-02-281-0/+13
|
* update copyright yearBenjamin Peterson2017-01-021-1/+1
|
* add 2016 to copyright yearsBenjamin Peterson2016-01-311-1/+1
|
* add License goop to all python files (fixes #137)Benjamin Peterson2015-10-201-0/+20
|
* improve performance of int2byte on python 3 (fixes #122)Benjamin Peterson2015-03-211-1/+1
|
* Merged in bartvm/six/create_unbound_method (pull request #64)Benjamin Peterson2015-03-201-0/+14
|\ | | | | | | Introduces a wrapper to create unbound methods.
| * Added testsBart van Merrienboer2015-01-211-0/+14
| |
* | Specify skipif condition as stringsderekhiggins2015-03-191-1/+1
| | | | | | | | Specifying all conditions as strings is more consistent and will allow tests to pass on pytest < 2.4.
* | fix tests on Python 3.1 (fixes #113)Benjamin Peterson2015-01-221-1/+1
|/ | | | Patch by Arfrever Frehtes Taifersar Arahesis.
* support the flush parameter of print_ (fixes #106)Benjamin Peterson2015-01-021-0/+11
|
* assertRegex and assertRaisesRegex are 2.7+ only, tooBenjamin Peterson2015-01-021-0/+2
|
* Merged in graingert/six (pull request #48)Benjamin Peterson2015-01-021-0/+21
|\
| * add tests for python_2_unicode_comapatibleThomas Grainger2014-09-161-0/+21
| |
* | Merged in timograham/six (pull request #57)Benjamin Peterson2015-01-021-0/+37
|\ \ | | | | | | | | | Added unittest aliases.
| * | Added unittest aliases.Tim Graham2014-11-251-0/+37
| | |
* | | add test for issue #105Benjamin Peterson2014-12-091-0/+12
|/ /
* | add raise_from (fixes #102)Benjamin Peterson2014-10-291-0/+21
| | | | | | | | Patch from Robert Collins.
* | It's skipIf, not skipifBrett Cannon2014-10-101-2/+2
| |
* | Drop kwargs tests for view*Brett Cannon2014-10-101-15/+2
| |
* | Address PR commentsBrett Cannon2014-10-051-14/+16
| |
* | Introduce viewkeys(), viewvalues(), and viewitems().Brett Cannon2014-10-031-0/+29
|/ | | | Closes issue #92
* fix add_metaclass when there is a __weakref__ or __dict__ slot (closes #88)Benjamin Peterson2014-08-171-0/+4
|
* instantiate the exception if the value is None (fixes #86)Benjamin Peterson2014-08-021-0/+8
|
* Merged in harlowja/six (pull request #32)Benjamin Peterson2014-04-301-0/+18
|\ | | | | | | Add a wraps helper
| * Add a test for wrapsJoshua Harlow2014-04-281-0/+18
| |
* | Test to ensure that with_metaclass() does not insert any intermediary basesBen Davis2014-04-261-0/+1
|/
* Stop referencing deleted private attrs in test_dictionary_iterators.Erik Rose2014-03-191-3/+12
|
* raise an AttributeError for six.moves.X when X is a module not available in ↵Benjamin Peterson2014-03-131-1/+2
| | | | | | the current interpreter As discussed in https://github.com/pypa/pip/issues/1643.
* correct version check (fixes #52)Benjamin Peterson2014-01-051-1/+1
|
* fix test on Python 3Benjamin Peterson2014-01-041-2/+2
|
* consolidate and rename testsBenjamin Peterson2014-01-041-4/+1
|
* Merge upstream default into issue_19Marc Abramowitz2014-01-041-12/+66
|\
| * Merged in alexanderlukanin13/six/urllib_import_weirdness (pull request #22)Benjamin Peterson2014-01-041-0/+20
| |\ | | | | | | | | | moves import bug fixed
| | * moves import bug fixedalexanderlukanin132013-11-071-0/+20
| | |
| * | add mapping for ttk (fixes #49)Benjamin Peterson2014-01-041-2/+5
| | |