| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Currently import does not use these attributes as they are planned
for use by importlib (which will be another commit).
Thanks to Filip Gruszczyński for the initial patch and Brian Curtin
for refining it.
|
|
|
|
|
|
|
|
| |
Patch by Serhiy Storchaka.
This also moves the TypeError that results from trying to use a unicode
comment from the 'close' step to the point at which the comment is added to
the zipfile.
|
|
|
|
| |
Georg Brandl
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Not that I haven't tested it to make sure it works, just that it
can run against an empty source file.
Initial patch by Popa.Claudiu.
Here we also add a test (which uses mock, which is why I didn't
check it in on 3.2).
|
|\ \
| |/
| |
| | |
Suggested by Glenn Linderman. Refactor code and tests
|
| |
| |
| |
| | |
Glenn Linderman. Refactor code and tests
|
| | |
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| | |
OSError.
|
| |
| |
| |
| |
| |
| |
| |
| | |
I thought I had run the full test suite before the last checkin, but
obviously I didn't. test_multibytecodec_support.py isn't really a test file,
it is a support file that contains a base test class. Rename it to
multibytecodec_support so that regrtest test discovery doesn't think it is a
test file that should be run.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This moves us further in the direction of using normal unittest facilities
instead of specialized regrtest ones. Any test module that can be correctly
run currently using 'python unittest -m test.test_xxx' can now be converted to
use normal unittest test loading by simply deleting its test_main, thus no
longer requiring manual maintenance of the list of tests to run. (Not all
tests can be converted that easily, since test_main sometimes does some
additional things (such as reap_children or reap_threads). In those cases the
extra code may be moved to setUpModule/tearDownModule methods, or perhaps the
same ends can be achieved in a different way, such as moving the decorators to
the test classes that need them, etc.)
I don't advocate going through and making this change wholesale, but any time
a list of tests in test_main would otherwise need to be updated, consideration
should instead be given to deleting test_main.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously mailbox was copying a list of attributes from one message object to
another in order to "copy the message data". This means that any time new
attributes were added to email.message.Message, mailbox broke. Now instead it
copies all attributes from the source object to the target object, skipping
any mailbox-object-specific attributes to produce the same clean initial
state it was previously getting by copying only the "known" attributes.
David Lam assisted in the development of this patch.
|
| | |
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/
| |
| |
| | |
This avoids crashing the server loop when a signal is received.
Patch by Jerzy Kozera.
|
| |
| |
| |
| |
| | |
This avoids crashing the server loop when a signal is received.
Patch by Jerzy Kozera.
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| | |
types on some platforms.
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | | |
deadlock if the main thread fails before sending all the data.
|
| |\ \
| | |/
| | |
| | | |
Initial patch by Popa Claudiu.
|
| | |
| | |
| | |
| | | |
Initial patch by Popa Claudiu.
|
| | |
| | |
| | |
| | |
| | | |
rather than raising RuntimeError (allocated space is sufficient for the
additional character).
|
| | |
| | |
| | |
| | |
| | | |
conversion in the Decimal constructor. Exact here refers to the
representation and not to the value (clamping does not change the value).
|
| |\ \
| | |/ |
|
| | | |
|
| |\ \
| | |/
| | |
| | |
| | |
| | | |
This patch changes a few of the scripts to have __name__=='__main__'
clauses so that they are importable without running. Also fixes the
syntax errors revealed by the tests.
|
| | |
| | |
| | |
| | |
| | |
| | | |
This patch changes a few of the scripts to have __name__=='__main__'
clauses so that they are importable without running. Also fixes the
syntax errors revealed by the tests.
|
| | |
| | |
| | |
| | |
| | |
| | | |
* Fixed refleak problems when GC collection is run (see messages in
issue #14065)
* Added weakref support to Element objects
|
| |\ \
| | |/
| | |
| | |
| | | |
a multiprocessing Client or Listener with an AF_UNIX type address under
Windows. Patch by Popa Claudiu.
|
| | |
| | |
| | |
| | |
| | | |
a multiprocessing Client or Listener with an AF_UNIX type address under
Windows. Patch by Popa Claudiu.
|
| | | |
|
|/ / |
|
| | |
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| |
| | |
access fails (expectedly) if other modules have already used decimal. The
only option is to remove the test.
|
|\ \
| |/ |
|
| | |
|
| | |
|
| | |
|
|\ \
| |/
| |
| |
| | |
a multiprocessing Client or Listener with an AF_PIPE type address under
non-Windows platforms. Patch by Popa Claudiu.
|
| |
| |
| |
| |
| | |
a multiprocessing Client or Listener with an AF_PIPE type address under
non-Windows platforms. Patch by Popa Claudiu.
|
| |
| |
| |
| |
| |
| |
| |
| | |
I will now continue investigating the cause of the ref-leak, but I wanted
to remove the test so that the refcount test in the buildbots could be clean.
The whole change (adding GC to Element) is not reverted because it improved
the situation (GC works for immediate cycles) and didn't cause regressions
(the test is new and was added together with the fix).
|
|\ \
| |/
| |
| |
| |
| | |
the socket repr()).
Patch by Matt Joiner.
|
| |
| |
| |
| |
| |
| | |
the socket repr()).
Patch by Matt Joiner.
|