Victor Stinner
99435247e3
Ooops, finish test_sys fix: use expected variable
2010-08-19 11:30:09 +00:00
Victor Stinner
85ca2afe3b
Fix test_sys about fs encoding for Windows and Mac OS X
...
* Check fs encoding value on Windows
* Ignore LANG= test on Windows and Mac OS X (fs encoding is hardcoded on these
platforms)
2010-08-19 11:23:47 +00:00
Victor Stinner
70f88c59eb
Fix test_os: workaround #8611 bug
2010-08-19 11:17:12 +00:00
Senthil Kumaran
f241afaead
Fix Issue9638 - remove dead code from py3k imaplib
2010-08-19 07:02:20 +00:00
Victor Stinner
e8d5145e18
Create os.fsdecode(): decode from the filesystem encoding with surrogateescape
...
error handler, or strict error handler on Windows.
* Rewrite os.fsencode() documentation
* Improve os.fsencode and os.fsdecode() tests using the new PYTHONFSENCODING
environment variable
2010-08-19 01:05:19 +00:00
Victor Stinner
c732e3ba08
test_sys: move tests at the right place
...
filesystem encoding is not related to sys.sizeof()
2010-08-18 22:44:15 +00:00
Victor Stinner
398356baaa
Improve error message if the command is not decodable
2010-08-18 22:23:22 +00:00
Amaury Forgeot d'Arc
7e44b6b0c5
Add more tests to unicodedata with large code points
...
(the other functions where not affected by the recent change)
2010-08-18 22:07:15 +00:00
Victor Stinner
94908bbc15
Issue #8622 : Add PYTHONFSENCODING environment variable to override the
...
filesystem encoding.
initfsencoding() displays also a better error message if get_codeset() failed.
2010-08-18 21:23:25 +00:00
Amaury Forgeot d'Arc
56ab01b66a
Fix stupid typo in test.
2010-08-18 21:12:52 +00:00
Victor Stinner
74a833fa96
Decompose TESTFN_UNICODE on Mac OS X
2010-08-18 21:06:23 +00:00
Amaury Forgeot d'Arc
324ac65ceb
#5127 : Even on narrow unicode builds, the C functions that access the Unicode
...
Database (Py_UNICODE_TOLOWER, Py_UNICODE_ISDECIMAL, and others) now accept
and return characters from the full Unicode range (Py_UCS4).
The differences from Python code are few:
- unicodedata.numeric(), unicodedata.decimal() and unicodedata.digit()
now return the correct value for large code points
- repr() may consider more characters as printable.
2010-08-18 20:44:58 +00:00
Antoine Pitrou
36e778ef02
Issue #9433 : The "-j" option to regrtest now works under Windows too.
...
It is not sure it will be beneficial, though, since process launching is
more expensive under Windows than it is under Linux.
2010-08-18 20:44:14 +00:00
Senthil Kumaran
7ff59131f8
Fix Issue672656 - Securing pydoc server.
2010-08-18 19:32:21 +00:00
Victor Stinner
d91df1a7a9
Improve PEP 383 tests (in test_os)
...
* Use the current filesystem encoding instead of always using utf-8
* Enable the test on Mac OS X
* Use TESTFN_UNENCODABLE and TESTFN_UNICODE instead of arbitrary filenames
* To decode a filename, use strict error handler instead surrogateescape for
mbcs encoding (on Windows)
* Use TESTFN_UNENCODABLE (if available) for the directory name
Skip the test if no non-ascii filename can be created.
2010-08-18 10:56:19 +00:00
Antoine Pitrou
79c5ef11d5
Issue #3488 : Provide convenient shorthand functions `gzip.compress`
...
and `gzip.decompress`. Original patch by Anand B. Pillai.
2010-08-17 21:10:05 +00:00
Giampaolo Rodolà
42382fedcc
fix issue #8807 : adds a context parameter to POP3_SSL class.
2010-08-17 16:09:53 +00:00
Giampaolo Rodolà
ccfb91c89f
fix issue #8866 : parameters passed to socket.getaddrinfo can now be specified as single keyword arguments.
2010-08-17 15:30:23 +00:00
Nick Coghlan
d26c18adcc
Issue #8202 : Set sys.argv[0] to -m rather than -c while searching for the module to execute. Also updates all the cmd_line_script tests to validate the setting of sys.path[0] and the current working directory
2010-08-17 13:06:11 +00:00
Nick Coghlan
46e6380563
Another attempt at pacifying the windows buildbots by ignoring all the variable information in the dis.code_info tests
2010-08-17 11:28:07 +00:00
Nick Coghlan
09c8123e6f
Address XXX comment in dis.py: inspect.py now attempts to reuse the dis.py compiler flag values before resorting to defining its own
2010-08-17 10:18:16 +00:00
Nick Coghlan
77203adb7e
Ignore the exact ID value for the nested function in the dis.code_info tests
2010-08-17 09:25:57 +00:00
Ezio Melotti
fc8b205da2
Correct a couple of assert* methods. Patch by Dave Malcolm.
2010-08-17 08:35:41 +00:00
Nick Coghlan
eae2da1da7
Issue 9147: Add dis.code_info()
2010-08-17 08:03:36 +00:00
Nick Coghlan
9887683f74
Document and test the resolution of issue 3445 (tolerate missing attributes in functools.update_wrapper, previously implemented as a side effect of the __annotations__ copying patch) and implement issue 9567 (add a __wrapped__ attribute when using update_wrapper)
2010-08-17 06:17:18 +00:00
Benjamin Peterson
052a02be4a
add tests for mknod() and mkfifo() #9569
2010-08-17 01:27:09 +00:00
Benjamin Peterson
82c4885210
remove test for oldstyle classes
2010-08-17 01:08:46 +00:00
Benjamin Peterson
83cd3b91e2
use assertTrue/assertFalse
2010-08-17 01:07:53 +00:00
Benjamin Peterson
45c257f193
add support for abstract class and static methods #5867
2010-08-17 00:52:52 +00:00
Victor Stinner
36e791179c
test_zipimport: fix test name
2010-08-17 00:44:11 +00:00
Alexander Belopolsky
977a684c94
Issue #8983 : Corrected docstrings.
2010-08-16 20:17:07 +00:00
Florent Xicluna
c9c29e2ab2
I get it wrong in r84097: s/relative/absolute/
2010-08-16 19:03:05 +00:00
Alexander Belopolsky
e29e6bffb5
Issue #665761 : functools.reduce() will no longer mask exceptions other
...
than TypeError raised by the iterator argument. Also added a test to
check that zip() already behaves similarly.
2010-08-16 18:55:46 +00:00
Florent Xicluna
27354ccec9
Use test.support and unittest features. Fix duplicated test (bad merge in r79033). Fix comment for issue #7902 .
2010-08-16 18:41:19 +00:00
Victor Stinner
2460a43a65
Issue #9425 : read_directory() is fully unicode compliant
...
zipimport is now able to load a module with an unencodable filename.
2010-08-16 17:54:28 +00:00
Antoine Pitrou
982c018b32
Remove debug hack
2010-08-16 14:33:42 +00:00
Giampaolo Rodolà
677d95c258
fix getaddrinfo test failure on OSX caused by AI_CANNAME erroneously used as the value for 'proto'
2010-08-16 05:08:11 +00:00
Richard Jones
daf235032f
close down sockets held by asyncore at end of test; closes issue9619
2010-08-16 01:48:14 +00:00
Antoine Pitrou
b14ac8c2b0
Save and restore the global asyncore.socket_map, and warn if a test modified it
2010-08-16 00:28:05 +00:00
Antoine Pitrou
ed9863685f
Add debug output to the asyncore test
2010-08-15 23:28:10 +00:00
Antoine Pitrou
f4c7badc02
Put test_ciphers in NetworkedTests
2010-08-15 23:02:22 +00:00
Antoine Pitrou
968dc03f24
Following Ezio's suggestion, force verbose mode on test_ssl to diagnose freezes on 3.x
2010-08-15 22:16:23 +00:00
Florent Xicluna
dc692740a8
Replace the deprecated ConfigParser.readfp() method, and fix the incomplete merge in r82293.
2010-08-15 20:16:27 +00:00
Victor Stinner
a0241c8587
Fix TESTFN_UNENCODABLE of test.support on Mac OS X
2010-08-15 19:28:21 +00:00
Raymond Hettinger
0b5669c0f5
Fix __all__.
2010-08-15 07:41:40 +00:00
Raymond Hettinger
bc653d1abe
Remove unused imports
2010-08-15 03:35:24 +00:00
Raymond Hettinger
f309828175
Remove the lfu_cache. Add more tests.
2010-08-15 03:30:45 +00:00
Raymond Hettinger
0f56e90f05
Support cache sizes.
2010-08-14 23:52:08 +00:00
Raymond Hettinger
5202fadb2c
Localize one more builtin lookup.
2010-08-14 22:29:52 +00:00
Raymond Hettinger
cbe8813f18
Add locks to make the caches well behaved in multi-threaded code.
...
Store builtins in cell variables to speed-up the common path,
reducing the chance of a lock needing to block at all.
2010-08-14 22:22:10 +00:00