]> granicus.if.org Git - python/commitdiff
Merge #15415 from 3.3
authorNick Coghlan <ncoghlan@gmail.com>
Sun, 28 Jul 2013 12:25:25 +0000 (22:25 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Sun, 28 Jul 2013 12:25:25 +0000 (22:25 +1000)
1  2 
Lib/test/script_helper.py
Lib/test/support/__init__.py
Lib/test/test_shutil.py
Misc/NEWS

index 3c6430b31a4c0f71a3e5af1655845a51865f26a9,ab201649e5b67173318dc9f2bd53760d12aa268e..e968e980bfff3340e7c5f3f5561337bf9e607eb8
@@@ -12,8 -12,8 +12,8 @@@ import contextli
  import shutil
  import zipfile
  
 -from imp import source_from_cache
 +from importlib.util import source_from_cache
- from test.support import make_legacy_pyc, strip_python_stderr
+ from test.support import make_legacy_pyc, strip_python_stderr, temp_dir
  
  # Executing the interpreter in a subprocess
  def _assert_python(expected_success, *args, **env_vars):
Simple merge
Simple merge
diff --cc Misc/NEWS
index 378e3dacbd72c5b4c13214f8e319efd956f2eaf2,281ab3ed5f5593e9ca8a3c6cade410d59203b7c7..fa34b433e2a79a94e3677d47a65d05f821dea3d3
+++ b/Misc/NEWS
@@@ -520,82 -426,63 +520,85 @@@ Librar
  - Issue #14971: unittest test discovery no longer gets confused when a function
    has a different __name__ than its name in the TestCase class dictionary.
  
 -- Issue #17678: Fix DeprecationWarning in the http/cookiejar.py by changing the
 -  usage of get_origin_req_host() to origin_req_host.
 +- Issue #17487: The wave getparams method now returns a namedtuple rather than
 +  a plain tuple.
  
 -- Issue #17666: Fix reading gzip files with an extra field.
 +- Issue #17675: socket repr() provides local and remote addresses (if any).
 +  Patch by Giampaolo Rodola'
  
 -- Issue #17502: Process DEFAULT values in mock side_effect that returns iterator.
 -  Patch by Michael Foord.
 +- Issue #17093: Make the ABCs in importlib.abc provide default values or raise
 +  reasonable exceptions for their methods to make them more amenable to super()
 +  calls.
  
 -- Issue #17572: Avoid chained exceptions while passing bad directives to
 -  time.strptime().  Initial patch by Claudiu Popa.
 +- Issue #17566: Make importlib.abc.Loader.module_repr() optional instead of an
 +  abstractmethod and raising NotImplementedError so as to be ignored by default.
  
 -- Issue #17435: threading.Timer's __init__ method no longer uses mutable
 -  default values for the args and kwargs parameters.
 +- Issue #17678: Remove the use of deprecated method in http/cookiejar.py.
 +  Changing the usage of get_origin_req_host() to origin_req_host.
  
 -- Issue #17526: fix an IndexError raised while passing code without filename to
 -  inspect.findsource().  Initial patch by Tyler Doyle.
 +- Issue #17666: Fix reading gzip files with an extra field.
  
 -- Issue #16550: Update the opcode descriptions of pickletools to use unsigned
 -  integers where appropriate.  Initial patch by Serhiy Storchaka.
 +- Issue #16475: Support object instancing, recursion and interned strings
 +  in marshal
  
 -IDLE
 -----
 +- Issue #17502: Process DEFAULT values in mock side_effect that returns iterator.
  
 -- Issue #17838: Allow sys.stdin to be reassigned.
 +- Issue #16795: On the ast.arguments object, unify vararg with varargannotation
 +  and kwarg and kwargannotation. Change the column offset of ast.Attribute to be
 +  at the attribute name.
  
 -- Issue #13495: Avoid loading the color delegator twice in IDLE.
 +- Issue #17434: Properly raise a SyntaxError when a string occurs between future
 +  imports.
  
 -- Issue #17798: Allow IDLE to edit new files when specified on command line.
 +- Issue #17117: Import and @importlib.util.set_loader now set __loader__ when
 +  it has a value of None or the attribute doesn't exist.
  
 -- Issue #14735: Update IDLE docs to omit "Control-z on Windows".
 +- Issue #17032: The "global" in the "NameError: global name 'x' is not defined"
 +  error message has been removed.  Patch by Ram Rachum.
  
 -- Issue #17585: Fixed IDLE regression. Now closes when using exit() or quit().
 +- Issue #18080: When building a C extension module on OS X, if the compiler
 +  is overriden with the CC environment variable, use the new compiler as
 +  the default for linking if LDSHARED is not also overriden.  This restores
 +  Distutils behavior introduced in 3.2.3 and inadvertently dropped in 3.3.0.
  
 -- Issue #17657: Show full Tk version in IDLE's about dialog.
 -  Patch by Todd Rovito.
 +- Issue #18113: Fixed a refcount leak in the curses.panel module's
 +  set_userptr() method.  Reported by Atsuo Ishimoto.
  
 -- Issue #17613: Prevent traceback when removing syntax colorizer in IDLE.
 +- Implement PEP 443 "Single-dispatch generic functions".
  
 -- Issue #1207589: Backwards-compatibility patch for right-click menu in IDLE.
 +- Implement PEP 435 "Adding an Enum type to the Python standard library".
  
 -- Issue #16887: IDLE now accepts Cancel in tabify/untabify dialog box.
 +Tests
 +-----
  
 -- Issue #17625: In IDLE, close the replace dialog after it is used.
++- Issue #15415: Add new temp_dir() and change_cwd() context managers to
++  test.support, and refactor temp_cwd() to use them.  Patch by Chris Jerdonek.
 -- Issue #14254: IDLE now handles readline correctly across shell restarts.
 +- Issue #15494: test.support is now a package rather than a module (Initial
 +  patch by Indra Talip)
  
 -- Issue #17614: IDLE no longer raises exception when quickly closing a file.
 +- Issue #17944: test_zipfile now discoverable and uses subclassing to
 +  generate tests for different compression types.  Fixed a bug with skipping
 +  some tests due to use of exhausted iterators.
  
 -- Issue #6698: IDLE now opens just an editor window when configured to do so.
 +- Issue #18266: test_largefile now works with unittest test discovery and
 +  supports running only selected tests.  Patch by Zachary Ware.
  
 -- Issue #8900: Using keyboard shortcuts in IDLE to open a file no longer
 -  raises an exception.
 +- Issue #17767: test_locale now works with unittest test discovery.
 +  Original patch by Zachary Ware.
  
 -- Issue #6649: Fixed missing exit status in IDLE. Patch by Guilherme Polo.
 +- Issue #18375: Assume --randomize when --randseed is used for running the
 +  testsuite.
  
 -Tests
 ------
 +- Issue #11185: Fix test_wait4 under AIX.  Patch by SĂ©bastien SablĂ©.
 +
 +- Issue #18207: Fix test_ssl for some versions of OpenSSL that ignore seconds
 +  in ASN1_TIME fields.
 +
 +- Issue #18094: test_uuid no more reports skipped tests as passed.
 +
 +- Issue #17992: Add timeouts to asyncore and asynchat tests so that they won't
 +  accidentally hang.
  
  - Issue #17833: Fix test_gdb failures seen on machines where debug symbols
    for glibc are available (seen on PPC64 Linux).