d6bfa94493b897f45ab939208a4a54a259a530e8 |
|
31-May-2015 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #21853: Fixed the inspect module in unicode disabled build.
/external/python/cpython2/Lib/test/test_inspect.py
|
6db9e88effca95d6d48db243a05169b3ed79bc2d |
|
05-Sep-2013 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #18830: inspect.getclasstree() no more produces duplicated entries even when input list contains duplicates.
/external/python/cpython2/Lib/test/test_inspect.py
|
e66e7de5d69542d9f10010a83787ef4b87a70bf8 |
|
30-Mar-2013 |
Ezio Melotti <ezio.melotti@gmail.com> |
#17526: fix an IndexError raised while passing code without filename to inspect.findsource(). Initial patch by Tyler Doyle.
/external/python/cpython2/Lib/test/test_inspect.py
|
e09bc1e8f54620e938b7e076830b872a8daabd2c |
|
18-Jan-2012 |
Antoine Pitrou <solipsis@pitrou.net> |
Revert part of 13f56cd8dec1 (issue #1785) to avoid breaking getmembers() with unbound methods. Python 3 isn't affected (unbound methods don't exist). Thanks to Vincent Pelletier for noticing.
/external/python/cpython2/Lib/test/test_inspect.py
|
b8572a1673a8bf25adf3b054f76315bdac2ea45e |
|
21-Dec-2011 |
Antoine Pitrou <solipsis@pitrou.net> |
Issue #1785: Fix inspect and pydoc with misbehaving descriptors. Also fixes issue #13581: `help(type)` wouldn't display anything.
/external/python/cpython2/Lib/test/test_inspect.py
|
0eb4ac4c6258ecbcbcb65022f3987fe30f31f527 |
|
11-Jun-2011 |
Benjamin Peterson <benjamin@python.org> |
allow "fake" filenames in findsource (closes #9284) This allows findsource() to work in doctests. A patch from Dirkjan Ochtman.
/external/python/cpython2/Lib/test/test_inspect.py
|
77d466079a53830e5358c5ee5fe1dd4cda40164c |
|
29-Mar-2011 |
Benjamin Peterson <benjamin@python.org> |
Correct handling of functions with only kwarg args in getcallargs (closes #11256) A patch from Daniel Urban.
/external/python/cpython2/Lib/test/test_inspect.py
|
2623a37852153363335956afab010cb0beb7e74e |
|
21-Nov-2010 |
Ezio Melotti <ezio.melotti@gmail.com> |
Merged revisions 86596 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
/external/python/cpython2/Lib/test/test_inspect.py
|
df1cf301c2da740f9271b3ff164d7f0e5cb9082c |
|
17-Jun-2010 |
R. David Murray <rdmurray@bitdance.com> |
#8720: fix inspect regression by teaching getsourcefile about linecache. The fix for issue 4050 caused a regression: before that fix, source lines in the linecache would eventually be found by inspect. After the fix inspect reports an error earlier, and the source isn't found. The fix for the fix is to have getsourcefile look in the linecache for the file and return the psuedo-filename if the source is there, just as it already returns it if there is a PEP 302 loader.
/external/python/cpython2/Lib/test/test_inspect.py
|
b60ee469cd1cd9c51f319fc32fa37987581605d1 |
|
10-Apr-2010 |
Jean-Paul Calderone <exarkun@divmod.com> |
Refactor a couple inspect module tests to remove duplicate code The test_classify_oldstyle and test_classify_newstyle methods of test.test_inspect.TestClassesAndFunctions were previously almost identical (aside from irrelevant whitespace and one semantic difference). They now share a single helper. Fixes issue #8363.
/external/python/cpython2/Lib/test/test_inspect.py
|
fcc500ebc4a6d93a2d610666aa37ece2663b8e22 |
|
31-Mar-2010 |
Ezio Melotti <ezio.melotti@gmail.com> |
Silence a py3k warning.
/external/python/cpython2/Lib/test/test_inspect.py
|
7e213255cee76f692dded963ec726b39319646c0 |
|
30-Mar-2010 |
Benjamin Peterson <benjamin@python.org> |
add inspect.getcallargs, which binds function arguments like a normal call #3135 Patch by George Sakkis
/external/python/cpython2/Lib/test/test_inspect.py
|
07627880813ffaad8d9b90bfe8791ccf588b031b |
|
21-Mar-2010 |
Florent Xicluna <florent.xicluna@gmail.com> |
#7092 - Silence more py3k deprecation warnings, using test_support.check_py3k_warnings() helper.
/external/python/cpython2/Lib/test/test_inspect.py
|
f28fd24c36310541a1f3ec74e92e8d38629dd5d8 |
|
23-Feb-2010 |
R. David Murray <rdmurray@bitdance.com> |
Issue 6292: for the moment at least, the test suite passes if run with -OO. Tests requiring docstrings are skipped. Patch by Brian Curtin, thanks to Matias Torchinsky for helping review and improve the patch.
/external/python/cpython2/Lib/test/test_inspect.py
|
a4f46e129294c686ef1effdd89c459bd9a624e6d |
|
07-Feb-2010 |
Georg Brandl <georg@python.org> |
Remove unused imports in test modules.
/external/python/cpython2/Lib/test/test_inspect.py
|
c68e9f0d200751692b9f54db337b80a465667fae |
|
03-Feb-2010 |
Mark Dickinson <dickinsm@gmail.com> |
Fix test_inspect.py data to match recent change to inspect_fodder.py (r77942).
/external/python/cpython2/Lib/test/test_inspect.py
|
aa98058cc44ba20f35c106d20918c6196b737561 |
|
24-Jan-2010 |
Ezio Melotti <ezio.melotti@gmail.com> |
use assert[Not]In where appropriate
/external/python/cpython2/Lib/test/test_inspect.py
|
ce8e33a095030e7af94f58f9da196b240bdf0476 |
|
08-Jan-2010 |
Senthil Kumaran <orsenthil@gmail.com> |
Reverting the Revision: 77368. I committed Flox's big patch for tests by mistake. ( It may come in for sure tough)
/external/python/cpython2/Lib/test/test_inspect.py
|
3ddc435af6873c6304058d7bcbcb19ee4fba7781 |
|
08-Jan-2010 |
Senthil Kumaran <orsenthil@gmail.com> |
Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox
/external/python/cpython2/Lib/test/test_inspect.py
|
c63457b18e986ae74a13e5b6601bdbd58e909c84 |
|
15-Oct-2009 |
Benjamin Peterson <benjamin@python.org> |
make inspect.isabstract() always return a boolean; add a test for it, too #7069
/external/python/cpython2/Lib/test/test_inspect.py
|
5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e |
|
01-Jul-2009 |
Benjamin Peterson <benjamin@python.org> |
convert usage of fail* to assert*
/external/python/cpython2/Lib/test/test_inspect.py
|
6a111027f2c1607d3e03acee6256eef38fafb206 |
|
28-May-2009 |
Philip Jenvey <pjenvey@underboss.org> |
explicitly close files
/external/python/cpython2/Lib/test/test_inspect.py
|
878555401e28a6da0ce05d2de637058a20ea7504 |
|
14-May-2009 |
R. David Murray <rdmurray@bitdance.com> |
Fix test failure on Windows, and add skip check if even unicodedata turns out not to be an external module on some other platform.
/external/python/cpython2/Lib/test/test_inspect.py
|
996ba0260209aaac0e1cd29516dc2ba7120c698b |
|
13-May-2009 |
R. David Murray <rdmurray@bitdance.com> |
Issue #4050: inspect.findsource/getsource now raise an IOError if the 'source' file is a binary. Patch by Brodie Rao, test by Daniel Diniz.
/external/python/cpython2/Lib/test/test_inspect.py
|
5e5fbb612d8109078c2777e1759277f9144616d0 |
|
17-Jan-2009 |
Benjamin Peterson <benjamin@python.org> |
fix inspect.isclass() on instances with a custom __getattr__ #1225107
/external/python/cpython2/Lib/test/test_inspect.py
|
b54447f31cf8f590ef526d2707f26041720f5784 |
|
14-Jan-2009 |
Amaury Forgeot d'Arc <amauryfa@gmail.com> |
#1162154: inspect.getmembers() now skips attributes that raise AttributeError, e.g. a __slots__ attribute which has not been set.
/external/python/cpython2/Lib/test/test_inspect.py
|
a2053475bb8a908e1cc80c765e02c98a6f354b19 |
|
14-Dec-2008 |
Nick Coghlan <ncoghlan@gmail.com> |
Fix several issues relating to access to source code inside zipfiles. Initial work by Alexander Belopolsky. See Misc/NEWS in this checkin for details.
/external/python/cpython2/Lib/test/test_inspect.py
|
7be19aabe20a04d8038383bc96c3dd96f27892c0 |
|
07-Jun-2008 |
Georg Brandl <georg@python.org> |
Factor out docstring dedenting from inspect.getdoc() into inspect.cleandoc() to ease standalone use of the algorithm.
/external/python/cpython2/Lib/test/test_inspect.py
|
26bc177fe6b1710cc306adee3be17145db4686ca |
|
03-Mar-2008 |
Georg Brandl <georg@python.org> |
15 -> 16, the 2nd
/external/python/cpython2/Lib/test/test_inspect.py
|
728bee897ff35702dd6f651b9e551761ec843c01 |
|
03-Mar-2008 |
Christian Heimes <christian@cheimes.de> |
15 -> 16
/external/python/cpython2/Lib/test/test_inspect.py
|
759bfc6207e7979d4eaeed2a2ae611e1804aef55 |
|
18-Feb-2008 |
Facundo Batista <facundobatista@gmail.com> |
Issue #1916. Added isgenerator() and isgeneratorfunction() to inspect.py. Thanks Javi Mansilla for patch review and corrections.
/external/python/cpython2/Lib/test/test_inspect.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_inspect.py
|
c495c66ea922e3ce8d822716a7abbf28ee709b71 |
|
07-Sep-2006 |
Nick Coghlan <ncoghlan@gmail.com> |
Fix the speed regression in inspect.py by adding another cache to speed up getmodule(). Patch #1553314
/external/python/cpython2/Lib/test/test_inspect.py
|
2463f8f831bdf7ed562a26a13a6214f203f0b037 |
|
14-Aug-2006 |
Georg Brandl <georg@python.org> |
Make tabnanny recognize IndentationErrors raised by tokenize. Add a test to test_inspect to make sure indented source is recognized correctly. (fixes #1224621)
/external/python/cpython2/Lib/test/test_inspect.py
|
df80af7659c05e45bb3500ce4cecca1f3f426280 |
|
28-Jul-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Ensure the actual number matches the expected count
/external/python/cpython2/Lib/test/test_inspect.py
|
00decd7835f0c2488451cedc345f2fb0650378b5 |
|
28-Jul-2006 |
Barry Warsaw <barry@python.org> |
Patch #1520294: Support for getset and member descriptors in types.py, inspect.py, and pydoc.py. Specifically, this allows for querying the type of an object against these built-in C types and more importantly, for getting their docstrings printed in the interactive interpreter's help() function. This patch includes a new built-in module called _types which provides definitions of getset and member descriptors for use by the types.py module. These types are exposed as types.GetSetDescriptorType and types.MemberDescriptorType. Query functions are provided as inspect.isgetsetdescriptor() and inspect.ismemberdescriptor(). The implementations of these are robust enough to work with Python implementations other than CPython, which may not have these fundamental types. The patch also includes documentation and test suite updates. I commit these changes now under these guiding principles: 1. Silence is assent. The release manager has not said "no", and of the few people that cared enough to respond to the thread, the worst vote was "0". 2. It's easier to ask for forgiveness than permission. 3. It's so dang easy to revert stuff in svn, that you could view this as a forcing function. :) Windows build patches will follow.
/external/python/cpython2/Lib/test/test_inspect.py
|
1a2959cfa80f43d9a250e6b7ee39cee51b7e8a57 |
|
20-Jul-2006 |
Phillip J. Eby <pje@telecommunity.com> |
Fix SF#1516184 (again) and add a test to prevent regression. (There was a problem with empty filenames still causing recursion)
/external/python/cpython2/Lib/test/test_inspect.py
|
722b88308da16225530a8852adc0581a918d5105 |
|
10-Jul-2006 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/test/test_inspect.py
|
5d86bdb3aebb14228d3c2e3f921bda34cf1c886c |
|
10-Jul-2006 |
Phillip J. Eby <pje@telecommunity.com> |
Fix SF#1516184 and add a test to prevent regression.
/external/python/cpython2/Lib/test/test_inspect.py
|
b2afe855e5d75a570707d6bf0e32206e4b7b1c4d |
|
09-Jun-2006 |
Georg Brandl <georg@python.org> |
Make use of new str.startswith/endswith semantics. Occurences in email and compiler were ignored due to backwards compat requirements.
/external/python/cpython2/Lib/test/test_inspect.py
|
33b730e33cb0a63f4030d1587a6196dcde36e965 |
|
27-Mar-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix SF bug #1458903 with AST compiler. def foo((x)): was getting recognized as requiring tuple unpacking which is not correct. Add tests for this case and the proper way to unpack a tuple of one: def foo((x,)): test_inpsect was incorrect before. I'm not sure why it was passing, but that has been corrected with a test for both functions above. This means the test (and therefore inspect.getargspec()) are broken in 2.4.
/external/python/cpython2/Lib/test/test_inspect.py
|
dd5c023af56b9a424a3965364521c50b73308379 |
|
25-Sep-2005 |
Armin Rigo <arigo@tunes.org> |
some more fixes and tests for inspect.getsource(), triggered by crashes from the PyPy project as well as the SF bug #1295909.
/external/python/cpython2/Lib/test/test_inspect.py
|
a5855d5ace1c1426e1247272c688ccc11ae02f7c |
|
12-Mar-2005 |
Johannes Gijsbers <jlg@dds.nl> |
Patch #1159931/bug #1143895: inspect.getsource failed when functions, etc., had comments after the colon, and some other cases. This patch take a simpler approach that doesn't rely on looking for a ':'. Thanks Simon Percivall!
/external/python/cpython2/Lib/test/test_inspect.py
|
5a9fb3c415d1204c7f2c12243ba5d46f5964dcbd |
|
07-Jan-2005 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/test/test_inspect.py
|
1542f34c42de544cf11e400906149c6252b42ae7 |
|
12-Dec-2004 |
Johannes Gijsbers <jlg@dds.nl> |
Patch #1011890: fix inspect.getsource breaking with line-continuation & more. Thanks to Simon Percivall! The patch makes changes to inspect.py in two places: * the pattern to match against functions at line 436 is modified: lambdas should be matched even if not preceded by whitespace, as long as "lambda" isn't part of another word. * the BlockFinder class is heavily modified. Changes are: - checking for "def", "class" or "lambda" names before setting self.started to True. Then checking the same line for word characters after the colon (if the colon is on that line). If so, and the line does not end with a line continuation marker, raise EndOfBlock immediately. - adding self.passline to show that the line is to be included and no more checking is necessary on that line. Since a NEWLINE token is not generated when a line continuation marker exists, this allows getsource to continue with these functions even if the following line would not be indented. Also add a bunch of 'quite-unlikely-to-occur-in-real-life-but-working-anyway' tests.
/external/python/cpython2/Lib/test/test_inspect.py
|
cb9015dc088676e7fa6434081d105068cded7743 |
|
12-Dec-2004 |
Johannes Gijsbers <jlg@dds.nl> |
Patch #736962: port test_inspect to unittest. As part of this, move out the fodder modules to separate files to get rid of the imp.load_source() trickery.
/external/python/cpython2/Lib/test/test_inspect.py
|
c473c99d16b43544fffcc8a33fbc61c95061b088 |
|
18-Aug-2004 |
Johannes Gijsbers <jlg@dds.nl> |
Patch #1006219: let inspect.getsource show '@' decorators and add tests for this (which are rather ugly, but it'll have to do until test_inspect gets a major overhaul and a conversion to unittest). Thanks Simon Percivall!
/external/python/cpython2/Lib/test/test_inspect.py
|
2e829c0214fc68655f1aaf2d4279697ee55394b3 |
|
15-Aug-2004 |
Matthias Klose <doko@ubuntu.com> |
- Bug #891637, patch #1005466: fix inspect.getargs() crash on def foo((bar)).
/external/python/cpython2/Lib/test/test_inspect.py
|
ba8b6bc86fcb00b37a53f8edd8f38c4b0e77f3a5 |
|
05-Jun-2004 |
Andrew M. Kuchling <amk@amk.ca> |
[Bug #954364] inspect.getframeinfo() sometimes produces incorrect traceback line #s; fix is to look at tb.tb_lineno, not tb.frame.f_lineno. Patch from Robin Becker and me.
/external/python/cpython2/Lib/test/test_inspect.py
|
893ffa4372f750bd21ae32ed215e39adc3c1597b |
|
31-Oct-2003 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #830858: Correct the number of is-functions. Backported to 2.3 and 2.2.
/external/python/cpython2/Lib/test/test_inspect.py
|
c4bf5edc3a5d404806b1f701653ec3187d5a1a7f |
|
27-Jun-2003 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Add a trivial test of getargspec() with a method.
/external/python/cpython2/Lib/test/test_inspect.py
|
4d28d96afb3adfb3ee90724257ec7b53da568dcc |
|
03-May-2003 |
Martin v. Löwis <martin@v.loewis.de> |
Refer to __builtin__.file, not __builtins__.file
/external/python/cpython2/Lib/test/test_inspect.py
|
e59e2bab8fe0fc3d20e815ac0f9b83d361d0d715 |
|
03-May-2003 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #711902: Cause pydoc to show data descriptor __doc__ strings.
/external/python/cpython2/Lib/test/test_inspect.py
|
a59ef7bbe025b05f5db0973ebdf8d973bf639e26 |
|
30-Nov-2002 |
Ka-Ping Yee <ping@zesty.ca> |
getdoc(): Remove leading whitespace from first line; remove leading and trailing blank lines from docstrings. (Patch 645938 submitted by David Goodger.)
/external/python/cpython2/Lib/test/test_inspect.py
|
04f357cffef6d764f2f0ff2671dabde75ec250d1 |
|
23-Jul-2002 |
Barry Warsaw <barry@python.org> |
Get rid of relative imports in all unittests. Now anything that imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
/external/python/cpython2/Lib/test/test_inspect.py
|
6006629c3c7bb6fa0a7901120149eca73ff40b8a |
|
16-Oct-2001 |
Tim Peters <tim.peters@gmail.com> |
Remove obsolete __dynamic__ distinction.
/external/python/cpython2/Lib/test/test_inspect.py
|
13b49d3374cca4eaffee5fa756192a234714c8ff |
|
23-Sep-2001 |
Tim Peters <tim.peters@gmail.com> |
New function classify_class_attrs(). As a number of SF bug reports point out, pydoc doesn't tell you where class attributes were defined, gets several new 2.2 features wrong, and isn't aware of some new features checked in on Thursday <wink>. pydoc is hampered in part because inspect.py has the same limitations. Alas, I can't think of a way to fix this within the current architecture of inspect/pydoc: it's simply not possible in 2.2 to figure out everything needed just from examining the object you get back from class.attr. You also need the class context, and the method resolution order, and tests against various things that simply didn't exist before. OTOH, knowledge of how to do that is getting quite complex, so doesn't belong in pydoc. classify_class_attrs takes a different approach, analyzing all the class attrs "at once", and returning the most interesting stuff for each, all in one gulp. pydoc needs to be reworked to use this for classes (instead of the current "filter dir(class) umpteen times against assorted predicates" approach).
/external/python/cpython2/Lib/test/test_inspect.py
|
e0b2d7ac9aea548d0bee1cdabd5d7b1254a6569d |
|
22-Sep-2001 |
Tim Peters <tim.peters@gmail.com> |
Add a function to compute a class's method resolution order. This is easy for 2.2 new-style classes, but trickier for classic classes, and different approaches are needed "depending". The function will allow later code to treat all flavors of classes uniformly.
/external/python/cpython2/Lib/test/test_inspect.py
|
f170d7fea7021843e7831832f5f11ca428699149 |
|
23-Mar-2001 |
Ka-Ping Yee <ping@zesty.ca> |
Don't have trace() skip the top frame; return them all.
/external/python/cpython2/Lib/test/test_inspect.py
|
243bff4708542a64c1e79555c509008d073d6f8c |
|
04-Mar-2001 |
Tim Peters <tim.peters@gmail.com> |
Clean up junk files left behind by imp.load_source().
/external/python/cpython2/Lib/test/test_inspect.py
|
9054344d1405cd31ea11e729edac2784dc19b6f2 |
|
02-Mar-2001 |
Ka-Ping Yee <ping@zesty.ca> |
Replace literal '@test' with TESTFN.
/external/python/cpython2/Lib/test/test_inspect.py
|
6397c7c9a96de6a253da0210239a6fdeafe42a18 |
|
27-Feb-2001 |
Ka-Ping Yee <ping@zesty.ca> |
inspect: a module for getting information out of live Python objects
/external/python/cpython2/Lib/test/test_inspect.py
|