Kaydet (Commit) 051b2201 authored tarafından Martin Panter's avatar Martin Panter

Issue #27787: Merge regrtest fixup from 3.5

...@@ -268,6 +268,7 @@ class saved_test_environment: ...@@ -268,6 +268,7 @@ class saved_test_environment:
def __exit__(self, exc_type, exc_val, exc_tb): def __exit__(self, exc_type, exc_val, exc_tb):
saved_values = self.saved_values saved_values = self.saved_values
del self.saved_values del self.saved_values
support.gc_collect() # Some resources use weak references
for name, get, restore in self.resource_info(): for name, get, restore in self.resource_info():
current = get() current = get()
original = saved_values.pop(name) original = saved_values.pop(name)
......
...@@ -29,6 +29,12 @@ Library ...@@ -29,6 +29,12 @@ Library
- Issue #12713: Allowed abbreviation of subcommands by end-users for users of - Issue #12713: Allowed abbreviation of subcommands by end-users for users of
argparse. argparse.
Tests
-----
- Issue #27787: Call gc.collect() before checking each test for "dangling
threads", since the dangling threads are weak references.
What's New in Python 3.6.0 alpha 4 What's New in Python 3.6.0 alpha 4
================================== ==================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment