b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab |
|
24-Jan-2010 |
Ezio Melotti <ezio.melotti@gmail.com> |
use assert[Not]IsInstance where appropriate
/external/python/cpython2/Lib/test/test_funcattrs.py
|
aa98058cc44ba20f35c106d20918c6196b737561 |
|
24-Jan-2010 |
Ezio Melotti <ezio.melotti@gmail.com> |
use assert[Not]In where appropriate
/external/python/cpython2/Lib/test/test_funcattrs.py
|
ed4ca821f1eb9461c294eefe8432b8607773dc62 |
|
04-Sep-2009 |
Georg Brandl <georg@python.org> |
#5101: add back tests to test_funcattrs that were lost during unittest conversion, and make some PEP8 cleanups.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e |
|
01-Jul-2009 |
Benjamin Peterson <benjamin@python.org> |
convert usage of fail* to assert*
/external/python/cpython2/Lib/test/test_funcattrs.py
|
578a228ee265e9ce4d88c01f8d9fd57a237cfc3e |
|
29-May-2009 |
Raymond Hettinger <python@rcn.com> |
Issue 5982: Classmethod and staticmethod expose wrapped function with __func__.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
3e4caeb3bf2b2579861e9f3379e3508fbb30549c |
|
21-Feb-2009 |
Mark Dickinson <dickinsm@gmail.com> |
Issue #5341: Fix a variety of spelling errors.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
8ada17742baaa36357dbdf70009d247c1863c291 |
|
05-Feb-2008 |
Georg Brandl <georg@python.org> |
Fix unittest conversion breakage.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
c8088df3636904eaa12e577c57f7e1b246cae1e6 |
|
02-Feb-2008 |
Georg Brandl <georg@python.org> |
Rewrite test_funcattrs as unittest, written for GHOP by Jeff Wheeler.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
c756d00cf20ba094a93f09647e80b688ded61bf5 |
|
27-Nov-2007 |
Christian Heimes <christian@cheimes.de> |
Replaced import of the 'new' module with 'types' module and added a deprecation warning to the 'new' module.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
ce7d10ccc4d04fd96dfd5c0d239ed81357efd3f8 |
|
24-Nov-2007 |
Amaury Forgeot d'Arc <amauryfa@gmail.com> |
Issue #1445: Fix a SystemError when accessing the ``cell_contents`` attribute of an empty cell object. Now a ValueError is raised.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
ee319f66ab6fc041ff2f576562997e4c7bd33d3e |
|
17-Feb-2005 |
Michael W. Hudson <mwh@python.net> |
Fix [ 1124295 ] Function's __name__ no longer accessible in restricted mode which I introduced with a bit of mindless copy-paste when making __name__ writable. You can't assign to __name__ in restricted mode, which I'm going to pretend was intentional :)
/external/python/cpython2/Lib/test/test_funcattrs.py
|
89a39461bff04b80bb4857790350e1ab30ff2df9 |
|
28-Oct-2004 |
Armin Rigo <arigo@tunes.org> |
Wrote down the invariants of some common objects whose structure is exposed in header files. Fixed a few comments in these headers. As we might have expected, writing down invariants systematically exposed a (minor) bug. In this case, function objects have a writeable func_code attribute, which could be set to code objects with the wrong number of free variables. Calling the resulting function segfaulted the interpreter. Added a corresponding test.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
bf9ac4bd8931aae6c1aca77e62e0eb15e2ef8a28 |
|
13-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
5e897959db37752da4c6b476903cdc5e1357093c |
|
12-Aug-2004 |
Michael W. Hudson <mwh@python.net> |
This is my patch [ 1004703 ] Make func_name writable plus fixing a couple of nits in the documentation changes spotted by MvL and a Misc/NEWS entry.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
4f0dcc9a9a4629607d4fff79912e8d0c86cd3914 |
|
31-Jan-2003 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Provide __module__ attributes for functions defined in C and Python. __module__ is the string name of the module the function was defined in, just like __module__ of classes. In some cases, particularly for C functions, the __module__ may be None. Change PyCFunction_New() from a function to a macro, but keep an unused copy of the function around so that we don't change the binary API. Change pickle's save_global() to use whichmodule() if __module__ is None, but add the __module__ logic to whichmodule() since it might be used outside of pickle.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
408b6d34de2b1a6ba690557def435adce9314184 |
|
31-Jul-2002 |
Barry Warsaw <barry@python.org> |
Complete the absolute import patch for the test suite. All relative imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
56ff387a7e625a692851e2e5ffdea096b72831f7 |
|
22-Oct-2001 |
Guido van Rossum <guido@python.org> |
Fix for SF bug #472940: can't getattr() attribute shown by dir() There really isn't a good reason for instance method objects to have their own __dict__, __doc__ and __name__ properties that just delegate the request to the function (callable); the default attribute behavior already does this. The test suite had to be fixed because the error changes from TypeError to AttributeError.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
db2a902dee92a7569ad08ddff899955925a903e0 |
|
18-Sep-2001 |
Guido van Rossum <guido@python.org> |
Undo some (but not all) of the more lenient acceptance of (AttributeError, TypeError) -- the leniency wasn't needed everywhere.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
bd131497112da319c4361c3e8656b5b7055011e3 |
|
18-Sep-2001 |
Guido van Rossum <guido@python.org> |
- Some tests that check that assignments are not allowed expect this to raise TypeError. In practice, a disallowed attribute assignment can raise either TypeError or AttributeError (and it's unclear which is better). So allow either. (Yes, this is in anticipation of a code change that switches the exception raised. :-) - Add a utility function, cantset(), which verifies that setting a particular attribute to a given value is disallowed, and also that deleting that same attribute is disallowed. Use this in the test_func_*() tests. - Add a new set of tests that test conformance of various instance method attributes. (Also in anticipation of code that changes their implementation.)
/external/python/cpython2/Lib/test/test_funcattrs.py
|
d9d1d4ac6fda7f4c898b55194be37b03b89450e9 |
|
18-Sep-2001 |
Guido van Rossum <guido@python.org> |
Rewrite function attributes to use the generic routines properly. This uses the new "restricted" feature of structmember, and getset descriptors for some of the type checks.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
033daa49eafae52f0b88085117e1bdf1cff2fe16 |
|
14-Aug-2001 |
Barry Warsaw <barry@python.org> |
Test the new semantics for setting and deleting a function's __dict__ attribute. Deleting it, or setting it to a non-dictionary result in a TypeError. Note that getting it the first time magically initializes it to an empty dict so that func.__dict__ will always appear to be a dictionary (never None). Closes SF bug #446645.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
c1e100f2154810c173bc53015e0b9eabbce56555 |
|
26-Feb-2001 |
Barry Warsaw <barry@python.org> |
Additional tests for current, PEP described semantics: - func.__dict__ is None until the first attribute is assigned - del func.__dict__ is equivalent to func.__dict__ = None - disallowing assignment to function attribute through unbound method (it was always illegal to assign through bound method). - verifying that setting attribute explicitly on underlying function via meth.im_func is okay.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
10fb3863994a7242dd6f86bf8d571d30338f2061 |
|
09-Feb-2001 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
497671e094b7f18221cc1f872bfe68afc57c860b |
|
29-Jan-2001 |
Moshe Zadka <moshez@math.huji.ac.il> |
The one thing I love more then writing code is deleting code. * Removed func_hash and func_compare, so they can be treated as immutable content-less objects (address hash and comparison) * Added tests to that affect to test_funcattrs (also testing func_code is writable) * Reverse meaning of tests in test_opcodes which checked identical code gets identical functions
/external/python/cpython2/Lib/test/test_funcattrs.py
|
2e9b3967403c87592d6356ea486858f452767507 |
|
19-Jan-2001 |
Barry Warsaw <barry@python.org> |
Add some regression tests of coredump bugs in funcobject.c 2.31. Also added a test of a coredump that would occur when del'ing func_defaults (put here for convenience).
/external/python/cpython2/Lib/test/test_funcattrs.py
|
534c60f9ab1e2bba453690e659d2a86f3ad6439d |
|
15-Jan-2001 |
Barry Warsaw <barry@python.org> |
Add a test case suggested by Guido, where a method is created with the new module.
/external/python/cpython2/Lib/test/test_funcattrs.py
|
4a420a0a753119bab88d60603a4305b3586982bd |
|
15-Jan-2001 |
Barry Warsaw <barry@python.org> |
Committing PEP 232, function attribute feature, approved by Guido. Closes SF patch #103123. Regression test for function attributes, with output file.
/external/python/cpython2/Lib/test/test_funcattrs.py
|