finefoot
c06c001b30
gh-92734: Add indentation feature to reprlib.Repr (GH-92735)
2022-09-08 13:51:44 -05:00
finefoot
b6558d768f
gh-94343: Ease initialization of reprlib.Repr attributes (GH-94581)
2022-07-07 09:55:33 -05:00
Alexander Böhn
8c21941dda
bpo-39549: reprlib.Repr uses a “fillvalue” attribute (GH-18343)
2021-09-22 15:45:58 -05:00
Victor Stinner
507a574de3
bpo-43682: @staticmethod inherits attributes (GH-25268)
...
Static methods (@staticmethod) and class methods (@classmethod) now
inherit the method attributes (__module__, __name__, __qualname__,
__doc__, __annotations__) and have a new __wrapped__ attribute.
Changes:
* Add a repr() method to staticmethod and classmethod types.
* Add tests on the @classmethod decorator.
2021-04-09 17:51:22 +02:00
Hai Shi
a089d21df1
bpo-40275: Use new test.support helper submodules in tests (GH-21315)
2020-07-06 11:15:08 +02:00
Benjamin Peterson
ab078e9ed1
Backed out changeset af29d89083b3 ( closes #25548 ) ( closes #27498 )
2016-07-13 21:13:29 -07:00
Kushal Das
5801ecb440
Issue #25548 : Showing memory address of class objects in repl
2016-06-04 16:21:13 -07:00
Serhiy Storchaka
b3b366d803
Issue #26634 : recursive_repr() now sets __qualname__ of wrapper.
...
Patch by Xiang Zhang.
2016-04-26 09:30:44 +03:00
Raymond Hettinger
a34cd0c781
Issue #22824 : Simplify reprlib output format for empty arrays
2014-11-15 10:58:58 -08:00
Raymond Hettinger
ffd842e1d6
Issue #22824 : Updated reprlib output format for sets to use set literals.
2014-11-09 22:30:36 -08:00
Serhiy Storchaka
0c937b3ed6
Issue #22031 : Reprs now always use hexadecimal format with the "0x" prefix
...
when contain an id in form " at 0x...".
2014-07-22 12:14:52 +03:00
Zachary Ware
7f7f3d7879
Issue #19928 : Fix test on Windows
2013-12-10 14:18:30 -06:00
Zachary Ware
ea6854a9ef
Issue #19928 : Fix test on Windows
2013-12-10 14:17:22 -06:00
Serhiy Storchaka
2a446bf76c
Issue #19928 : Implemented a test for repr() of cell objects.
2013-12-10 10:21:51 +02:00
Serhiy Storchaka
1f79cdfbfa
Issue #19928 : Implemented a test for repr() of cell objects.
2013-12-10 10:20:31 +02:00
Zachary Ware
101d9e7250
Issue 19572: More silently skipped tests explicitly skipped.
2013-12-08 00:44:27 -06:00
Zachary Ware
9fe6d86709
Issue 19572: More silently skipped tests explicitly skipped.
2013-12-08 00:20:35 -06:00
Eric Snow
b523f8433a
Implement PEP 451 (ModuleSpec).
2013-11-22 09:05:39 -07:00
Brett Cannon
9529fbfd36
Issue #17177 : Stop using imp in a bunch of tests
2013-06-15 17:11:25 -04:00
Antoine Pitrou
110ee34e41
Lower test-skipping threshold in test_reprlib
2012-06-23 22:55:58 +02:00
Antoine Pitrou
f0f4742b49
Fix silly mistake in debugging code
2012-06-23 00:49:44 +02:00
Antoine Pitrou
541b7c89ff
Add debug output for temporary buildbot failures
2012-06-23 00:07:38 +02:00
Brett Cannon
7b383c431a
Make a test easier to read.
2012-06-11 11:02:36 -04:00
Antoine Pitrou
01296da8df
Skip long repr tests when the cached pyc file's path length would exceed the maximum Win32 path length.
...
This should fix a failure on one of the XP buildbots.
2012-04-24 13:55:35 +02:00
Brett Cannon
ceffda822f
Issue #14599 : Make test_reprlib robust against import cache race
...
conditions when regrtest is run with its -j option.
2012-04-16 20:48:50 -04:00
Antoine Pitrou
c541f8ef40
Issue #14043 : Speed up importlib's _FileFinder by at least 8x, and add a new importlib.invalidate_caches() function.
...
importlib is now often faster than imp.find_module() at finding modules.
2012-02-20 01:48:16 +01:00
Antoine Pitrou
86a36b500a
PEP 3155 / issue #13448 : Qualified name for classes and functions.
2011-11-25 18:56:07 +01:00
Victor Stinner
bf816223df
Issue #12451 : Add support.create_empty_file()
...
We don't need to create a temporary buffered binary or text file object just to
create an empty file.
Replace also os.fdopen(handle).close() by os.close(handle).
2011-06-30 23:25:47 +02:00
Victor Stinner
e1ea8298c6
Issue #3080 : Fix test_reprlib on Windows
...
Fix the test for last module changes (r88520).
2011-02-23 14:14:48 +00:00
Ezio Melotti
b3aedd4862
#9424 : Replace deprecated assert* methods in the Python test suite.
2010-11-20 19:04:17 +00:00
Raymond Hettinger
98a5f3f838
Issue 9840: Add reprlib.recursive_repr(), a decorator for handling recursive calls to __repr__ methods.
2010-09-13 21:36:00 +00:00
Ronald Oussoren
94f25283c9
Remove traces of MacOS9 support.
...
Fix for issue #7908
2010-05-05 19:11:21 +00:00
Benjamin Peterson
577473fe68
use assert[Not]In where appropriate
...
A patch from Dave Malcolm.
2010-01-19 00:09:57 +00:00
Benjamin Peterson
c9c0f201fe
convert old fail* assertions to assert*
2009-06-30 23:06:06 +00:00
Benjamin Peterson
ee8712cda4
#2621 rename test.test_support to test.support
2008-05-20 21:35:26 +00:00
Alexandre Vassalotti
bee325387b
Merged revisions 63361-63373,63375,63377-63380 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r63361 | alexandre.vassalotti | 2008-05-16 03:14:08 -0400 (Fri, 16 May 2008) | 2 lines
Rename the test file of reprlib.
........
r63364 | georg.brandl | 2008-05-16 05:34:48 -0400 (Fri, 16 May 2008) | 2 lines
Make generator repr consistent with function and code object repr.
........
r63365 | georg.brandl | 2008-05-16 05:47:29 -0400 (Fri, 16 May 2008) | 2 lines
#2869 : remove parameter from signature.
........
r63366 | christian.heimes | 2008-05-16 06:23:31 -0400 (Fri, 16 May 2008) | 1 line
Fixed #2870 : cmathmodule.c compile error
........
r63367 | christian.heimes | 2008-05-16 07:28:56 -0400 (Fri, 16 May 2008) | 1 line
Following Amaury's advice
........
r63368 | georg.brandl | 2008-05-16 09:10:15 -0400 (Fri, 16 May 2008) | 2 lines
#2890 : support os.O_ASYNC and fcntl.FASYNC.
........
r63369 | georg.brandl | 2008-05-16 09:18:50 -0400 (Fri, 16 May 2008) | 2 lines
#2845 : fix copy2's docs.
........
r63370 | georg.brandl | 2008-05-16 09:24:29 -0400 (Fri, 16 May 2008) | 2 lines
Don't allow keyword arguments to reversed().
........
r63373 | georg.brandl | 2008-05-16 09:41:26 -0400 (Fri, 16 May 2008) | 2 lines
Document O_ASYNC addition.
........
r63380 | georg.brandl | 2008-05-16 13:33:13 -0400 (Fri, 16 May 2008) | 2 lines
Fix reprlib docs.
........
2008-05-16 18:15:12 +00:00