Victor Stinner
acf47b807f
Fix my last change on PyUnicode_Join(): don't process separator if len==1
2011-10-06 12:32:37 +02:00
Victor Stinner
25a4b29c95
str.replace() avoids memory when it's possible
2011-10-06 12:31:55 +02:00
Éric Araujo
6fd287e6c2
Fix return code of “pysetup run COMMAND” ( closes #12222 )
2011-10-06 05:28:56 +02:00
Éric Araujo
8ed34a130e
Minor: improve one test name, address pyflakes warnings
2011-10-06 05:18:41 +02:00
Éric Araujo
fa23cc842c
Add test that was promised in a comment but not actually written
2011-10-06 05:15:09 +02:00
Éric Araujo
9556a5bab2
Fix incorrect test.
...
The packaging.install.remove function (a.k.a. the uninstall feature)
takes a path argument to allow client code to use custom directories
instead of sys.path. The test used to give self.root_dir as path, which
corresponds to a prefix option, but prefix is not on sys.path, it’s only
the base directory used to compute the stdlib and site-packages
directory paths. The test now gives a valid site-packages path to the
function.
2011-10-06 05:10:09 +02:00
Éric Araujo
2c30e3999c
Change one name in packaging’s test_uninstall to avoid confusion.
...
install_lib may be the name of a module, a command or an option, so I
find it clearer to use site_packages to refer to a string object
containing the path of the site-packages directory created in a
temporary directory during tests.
2011-10-06 04:59:41 +02:00
Victor Stinner
56c161ab00
_copy_characters() fails more quickly in debug mode on inconsistent state
2011-10-06 02:47:11 +02:00
Éric Araujo
76558e12ad
Add regrtest check for caches in packaging.database (see #12167 )
2011-10-06 02:44:19 +02:00
Victor Stinner
46084bad88
Fix find_module_path(): make the string ready
2011-10-06 02:39:42 +02:00
Victor Stinner
c729b8e92f
Fix a compiler warning: don't define unicode_is_singleton() in release mode
2011-10-06 02:36:59 +02:00
Victor Stinner
b62a7b268a
Fix _warnings.c: make the filename string ready
2011-10-06 02:34:51 +02:00
Victor Stinner
1d4b35f4e5
rephrase PyUnicode_1BYTE_KIND documentation
2011-10-06 01:51:19 +02:00
Victor Stinner
fb9ea8c57e
Don't check for the maximum character when copying from unicodeobject.c
...
* Create copy_characters() function which doesn't check for the maximum
character in release mode
* _PyUnicode_CheckConsistency() is no more static to be able to use it
in _PyUnicode_FormatAdvanced() (in formatter_unicode.c)
* _PyUnicode_CheckConsistency() checks the string hash
2011-10-06 01:45:57 +02:00
Victor Stinner
05d1189566
Fix post-condition in unicode_repr(): check the result, not the input
2011-10-06 01:13:58 +02:00
Victor Stinner
f48323e3b3
replace() uses unicode_fromascii() if the input and replace string is ASCII
2011-10-05 23:27:08 +02:00
Victor Stinner
0617b6e18b
unicode_fromascii() checks that the input is ASCII in debug mode
2011-10-05 23:26:01 +02:00
Victor Stinner
a336de7ae1
traceback: fix dump_ascii() for string with kind=PyUnicode_WCHAR_KIND
2011-10-05 22:44:12 +02:00
Amaury Forgeot d'Arc
3484c09c97
Merge from 3.2
2011-10-05 22:37:06 +02:00
Amaury Forgeot d'Arc
3e961a5fd1
Enable the only tests for sys.gettrace
2011-10-05 22:36:05 +02:00
Charles-François Natali
42c28cdd1d
Issue #13070 : Fix a crash when a TextIOWrapper caught in a reference cycle
...
would be finalized after the reference to its underlying BufferedRWPair's
writer got cleared by the GC.
2011-10-05 19:53:43 +02:00
Senthil Kumaran
1b7da519b0
Issue13104 - Fix urllib.request.thishost() utility function.
2011-10-06 00:32:02 +08:00
Senthil Kumaran
ad87fa6719
Issue #13073 - Address the review comments made by Ezio.
2011-10-05 23:26:49 +08:00
Éric Araujo
1079bdfde3
Merge 3.2
2011-10-05 01:52:45 +02:00
Éric Araujo
4300f69afd
Update skip message printed by test.support.get_attribute.
...
This helper was changed to work with any object instead of only modules
(or technically something with a __name__ attribute, see code in 3.2)
but the message stayed as is.
2011-10-05 01:50:22 +02:00
Éric Araujo
c4637714b0
Cosmetic fixes for whitespace and a regex in packaging.
...
The goal of the regex is to catch a (alpha), b (beta), c or rc
(release candidate), so the existing pattern puzzled me. Tests were
OK before and after the change.
2011-10-05 01:46:37 +02:00
Éric Araujo
763cc6eaee
Add tests for comparing candidate and final versions in packaging ( #11841 ).
...
This used to be buggy; Filip Gruszczyński contributed tests and a code
patch but the latter is not needed.
2011-10-05 01:41:14 +02:00
Éric Araujo
63ba97b586
Fix typo and case in a recently added test
2011-10-05 01:29:22 +02:00
Éric Araujo
58a9153c9f
Fix markup used in the documentation of sys.prefix and sys.exec_prefix.
...
- Using the file role with {placeholders} is IMO clearer than fake
Python code.
- The fact that sys.version[:3] gives '3.2' is a CPython detail and
should not be advertised (see #9442 ), even if some stdlib modules
currently rely on that detail.
2011-10-05 01:28:24 +02:00
Éric Araujo
da27263b4a
Move doc of sys.dont_write_bytecode to make all attributes sorted again
2011-10-05 01:17:38 +02:00
Éric Araujo
56fab3daed
Remove inline comment, no longer supported by configparser.
...
(Deleted rather than moved because multilib implementations vary.)
2011-10-05 01:14:02 +02:00
Éric Araujo
80a348c0a0
Fix typo
2011-10-05 01:11:12 +02:00
Éric Araujo
525b1e9dd4
Fix minor wording issue.
...
sys.maxunicode is not called and thus does not return anything; it *is*
something. (I checked the doc quickly to see if it tells that
expression return things but found nothing.)
I also removed markup that would just generate a useless link to the
enclosing section.
2011-10-05 01:06:31 +02:00
Éric Araujo
5043f0904b
More info about PEP 393 in whatsnew and NEWS
2011-10-05 01:04:18 +02:00
Éric Araujo
b07b97f3a4
Minor updates to the whatsnew maintenance rules
2011-10-05 01:03:34 +02:00
Charles-François Natali
035018d078
os.geteuid() may not be available...
2011-10-04 23:35:47 +02:00
Charles-François Natali
79164c8c71
Issue #11956 : Always skip test_import.test_unwritable_directory when run as
...
root, since the semantics varies across Unix variants.
2011-10-04 20:40:58 +02:00
Charles-François Natali
a13b1faa78
Issue #11956 : Skip test_import.test_unwritable_directory on FreeBSD when run as
...
root (directory permissions are ignored).
2011-10-04 19:17:26 +02:00
Antoine Pitrou
b7591d4780
Also fix pickletester
2011-10-04 16:18:15 +02:00
Antoine Pitrou
382e8b515c
An embarassing litle typo
2011-10-04 16:07:27 +02:00
Antoine Pitrou
e19aa388e8
When expandtabs() would be a no-op, don't create a duplicate string
2011-10-04 16:04:01 +02:00
Antoine Pitrou
87a484caf5
Migrate test_bigmem to PEP 393-compliant size calculations (hopefully)
2011-10-04 15:55:44 +02:00
Antoine Pitrou
e71d574a39
Migrate str.expandtabs to the new API
2011-10-04 15:55:09 +02:00
Antoine Pitrou
310638ea81
Try to fix linking failures under Windows
2011-10-04 14:44:35 +02:00
Antoine Pitrou
36225c6a99
Try to fix linking failures under Windows
2011-10-04 14:43:47 +02:00
Antoine Pitrou
061fe34262
Remove all other uses of the C tolower()/toupper() which could break with a Turkish locale.
2011-10-04 13:53:01 +02:00
Antoine Pitrou
ed8ba14441
Remove all other uses of the C tolower()/toupper() which could break with a Turkish locale.
2011-10-04 13:50:21 +02:00
Antoine Pitrou
8e4dd08f23
Issue #13099 : Fix sqlite3.Cursor.lastrowid under a Turkish locale.
...
Reported and diagnosed by Thomas Kluyver.
2011-10-04 13:37:06 +02:00
Antoine Pitrou
1665d2c75f
Issue #13099 : Fix sqlite3.Cursor.lastrowid under a Turkish locale.
...
Reported and diagnosed by Thomas Kluyver.
2011-10-04 13:35:28 +02:00
Antoine Pitrou
b244d075fb
Fix compilation error under Windows
2011-10-04 13:00:02 +02:00