<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_support.py, branch v3.7.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_support.py?h=v3.7.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_support.py?h=v3.7.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2018-11-23T17:13:32Z</updated>
<entry>
<title>bpo-34812: subprocess._args_from_interpreter_flags(): add isolated (GH-10675)</title>
<updated>2018-11-23T17:13:32Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-11-23T17:13:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=01e579949ab546cd4cdd0d6d18e3ef41ce94f46e'/>
<id>urn:sha1:01e579949ab546cd4cdd0d6d18e3ef41ce94f46e</id>
<content type='text'>
The "-I" command line option (run Python in isolated mode) is now
also copied by the multiprocessing and distutils modules when
spawning child processes. Previously, only -E and -s options (enabled
by -I) were copied.

subprocess._args_from_interpreter_flags() now copies the -I flag.
(cherry picked from commit 9de363271519e0616f4a7b59427057c4810d3acc)

Co-authored-by: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191)</title>
<updated>2018-07-09T15:47:14Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-07-09T15:47:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=958a25ea9fdf3e47f3f0829073dc77c0869488dd'/>
<id>urn:sha1:958a25ea9fdf3e47f3f0829073dc77c0869488dd</id>
<content type='text'>
Fixed also testing the "always" warning filter.
(cherry picked from commit b796e7dcdc24ff7ec53044af041254c83a8ace21)

Co-authored-by: Sergey Fedoseev &lt;fedoseev.sergey@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421)</title>
<updated>2018-06-06T15:57:20Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-06-06T15:57:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=016aff77cbf5f63ed051a98ac628522a1cfd40a4'/>
<id>urn:sha1:016aff77cbf5f63ed051a98ac628522a1cfd40a4</id>
<content type='text'>
Substract one because listdir() opens internally a file
descriptor to list the content of the /proc/self/fd/ directory.

Add test_support.test_fd_count().

Move also MAXFD code before msvcrt.CrtSetReportMode(), to make sure
that the report mode is always restored on failure.
(cherry picked from commit 492d6424a7ca907c8ec1df21e51062e8f3d88e32)

Co-authored-by: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>bpo-30028: make test.support.temp_cwd() fork-safe (GH-1066)</title>
<updated>2018-02-23T05:39:02Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-02-23T05:39:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=694c5e0e1f7f23595fab314f26b89e241477ff18'/>
<id>urn:sha1:694c5e0e1f7f23595fab314f26b89e241477ff18</id>
<content type='text'>
Make test.support.temp_cwd() fork-safe. The context manager test.support.temp_cwd() no longer removes the temporary directory when executing in a process other than the parent it entered from.
If a forked child exits the context manager it won't do the cleanup.
(cherry picked from commit 33dddac00ba8d9b72cf21b8698504077eb3c23ad)

Co-authored-by: Anselm Kruis &lt;a.kruis@science-computing.de&gt;</content>
</entry>
<entry>
<title>bpo-31324: Fix test.support.set_match_tests(None) (#4505)</title>
<updated>2017-11-22T19:58:59Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-11-22T19:58:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bb11c3c967afaf263e00844d4ab461b7fafd6d36'/>
<id>urn:sha1:bb11c3c967afaf263e00844d4ab461b7fafd6d36</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-31324: Optimize support._match_test() (#4421)</title>
<updated>2017-11-21T23:34:02Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-11-21T23:34:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=803ddd8ce22f0de3ab42fb98a225a704c000ef06'/>
<id>urn:sha1:803ddd8ce22f0de3ab42fb98a225a704c000ef06</id>
<content type='text'>
* Rename support._match_test() to support.match_test(): make it
  public
* Remove support.match_tests global variable. It is replaced with a
  new support.set_match_tests() function, so match_test() doesn't
  have to check each time if patterns were modified.
* Rewrite match_test(): use different code paths depending on the
  kind of patterns for best performances.

Co-Authored-By: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-32094: Update subprocess for -X dev (#4480)</title>
<updated>2017-11-20T23:24:56Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-11-20T23:24:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f39b674876d2bd47ec7fc106d673b60ff24092ca'/>
<id>urn:sha1:f39b674876d2bd47ec7fc106d673b60ff24092ca</id>
<content type='text'>
Modify subprocess._args_from_interpreter_flags() to handle -X dev
option.

Add also unit tests for test.support.args_from_interpreter_flags()
and test.support.optim_args_from_interpreter_flags().
</content>
</entry>
<entry>
<title>Enhance support.reap_children() (#3036)</title>
<updated>2017-08-10T14:01:47Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-08-10T14:01:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b5011479808b80545bdd1246725fc7940691b084'/>
<id>urn:sha1:b5011479808b80545bdd1246725fc7940691b084</id>
<content type='text'>
* reap_children() now sets environment_altered to True to detect bugs
  using python3 -m test --fail-env-changed
* Replace bare "except:" with "except OSError:" in reap_children()
* Write an unit test for reap_children() using a timeout of 60
  seconds</content>
</entry>
<entry>
<title>bpo-30197: Enhance functions swap_attr() and swap_item() in test.support. (#1341)</title>
<updated>2017-04-28T16:17:26Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-04-28T16:17:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d1a1def7bf221b04dcf3fc3a67aa19aa2f622f83'/>
<id>urn:sha1:d1a1def7bf221b04dcf3fc3a67aa19aa2f622f83</id>
<content type='text'>
* bpo-30197: Enhance functions swap_attr() and swap_item() in test.support.

They now work when delete replaced attribute or item inside the with
statement.  The old value of the attribute or item (or None if it doesn't
exist) now will be assigned to the target of the "as" clause, if there is
one.

* Update docstrings.
</content>
</entry>
<entry>
<title>support: temp_dir() and change_cwd() uses repr() in error message</title>
<updated>2017-02-08T14:49:10Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-02-08T14:49:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3722f1f483065338e83ec1e28cd8dc8412ef39d7'/>
<id>urn:sha1:3722f1f483065338e83ec1e28cd8dc8412ef39d7</id>
<content type='text'>
Serhiy Storshaka pointed me that str(path) can emit a BytesWarning: use
repr(path) instead.
</content>
</entry>
</feed>
