<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/distutils/tests/test_exec_command.py, branch v1.9.0</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>2to3: Apply `print` fixer.</title>
<updated>2013-04-06T19:25:26+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-04-06T19:25:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=bb726ca19f434f5055c0efceefe48d89469fcbbe'/>
<id>bb726ca19f434f5055c0efceefe48d89469fcbbe</id>
<content type='text'>
Add `print_function` to all `from __future__ import ...` statements
and use the python3 print function syntax everywhere.

Closes #3078.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add `print_function` to all `from __future__ import ...` statements
and use the python3 print function syntax everywhere.

Closes #3078.
</pre>
</div>
</content>
</entry>
<entry>
<title>2to3: Apply `imports` fixer.</title>
<updated>2013-04-02T17:23:58+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-03-28T23:13:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=09a52ed47bb26498c97a579ce1147861df696d84'/>
<id>09a52ed47bb26498c97a579ce1147861df696d84</id>
<content type='text'>
The `imports` fixer deals with the standard packages that have been
renamed, removed, or methods that have moved.

cPickle      -- removed, use pickle
commands     -- removed, getoutput, getstatusoutput moved to subprocess
urlparse     -- removed, urlparse moved to urllib.parse
cStringIO    -- removed, use StringIO or io.StringIO
copy_reg     -- renamed copyreg
_winreg      -- renamed winreg
ConfigParser -- renamed configparser
__builtin__  -- renamed builtins

In the case of `cPickle`, it is imported as `pickle` when python &lt; 3 and
performance may be a consideration, but otherwise plain old `pickle` is
used.

Dealing with `StringIO` is a bit tricky. There is an `io.StringIO`
function in the `io` module, available since Python 2.6, but it expects
unicode whereas `StringIO.StringIO` expects ascii. The Python 3
equivalent is then `io.BytesIO`. What I have done here is used BytesIO
for anything that is emulating a file for testing purposes. That is more
explicit than using a redefined StringIO as was done before we dropped
support for Python 2.4 and 2.5.

Closes #3180.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `imports` fixer deals with the standard packages that have been
renamed, removed, or methods that have moved.

cPickle      -- removed, use pickle
commands     -- removed, getoutput, getstatusoutput moved to subprocess
urlparse     -- removed, urlparse moved to urllib.parse
cStringIO    -- removed, use StringIO or io.StringIO
copy_reg     -- renamed copyreg
_winreg      -- renamed winreg
ConfigParser -- renamed configparser
__builtin__  -- renamed builtins

In the case of `cPickle`, it is imported as `pickle` when python &lt; 3 and
performance may be a consideration, but otherwise plain old `pickle` is
used.

Dealing with `StringIO` is a bit tricky. There is an `io.StringIO`
function in the `io` module, available since Python 2.6, but it expects
unicode whereas `StringIO.StringIO` expects ascii. The Python 3
equivalent is then `io.BytesIO`. What I have done here is used BytesIO
for anything that is emulating a file for testing purposes. That is more
explicit than using a redefined StringIO as was done before we dropped
support for Python 2.4 and 2.5.

Closes #3180.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #3178 from charris/2to3-apply-import-fixer</title>
<updated>2013-04-02T15:53:45+00:00</updated>
<author>
<name>njsmith</name>
<email>njs@pobox.com</email>
</author>
<published>2013-04-02T15:53:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=a939f2aa83e7d37d5e35e7c2a8c539c59f682598'/>
<id>a939f2aa83e7d37d5e35e7c2a8c539c59f682598</id>
<content type='text'>
2to3 apply import fixer</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
2to3 apply import fixer</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Fix python3 ResourceWarning when running test_exec_command.py</title>
<updated>2013-03-28T16:48:45+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-03-28T16:48:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=15b7f9b6519d3b5c3d4ddc2a23459ca089527fc0'/>
<id>15b7f9b6519d3b5c3d4ddc2a23459ca089527fc0</id>
<content type='text'>
The tests in test_exec_command.py used with blocks with a context
manager that could redirect stderr and stdout to temporary files but
those files were not closed on exit from the block.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The tests in test_exec_command.py used with blocks with a context
manager that could redirect stderr and stdout to temporary files but
those files were not closed on exit from the block.
</pre>
</div>
</content>
</entry>
<entry>
<title>2to3: Add `from __future__ import ...` to some files that were missed.</title>
<updated>2013-03-28T16:03:43+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-03-28T16:03:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=670b12649e34164514fc4981d8fbacfadf1f389e'/>
<id>670b12649e34164514fc4981d8fbacfadf1f389e</id>
<content type='text'>
With the exception of numpy/distutils/tests/test_exec_command.py, all
of these files are script files in tools/osxbuild and tools/win32build.
The import in the  script files omits `absolute_import` as they are
not part of a package.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With the exception of numpy/distutils/tests/test_exec_command.py, all
of these files are script files in tools/osxbuild and tools/win32build.
The import in the  script files omits `absolute_import` as they are
not part of a package.
</pre>
</div>
</content>
</entry>
<entry>
<title>TST: open the TemporaryFile in ASCII mode</title>
<updated>2013-03-25T14:06:28+00:00</updated>
<author>
<name>Ondrej Certik</name>
<email>ondrej.certik@gmail.com</email>
</author>
<published>2013-03-25T09:54:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=df813e52675cf873d4b82347b53ed8eda5c6cc06'/>
<id>df813e52675cf873d4b82347b53ed8eda5c6cc06</id>
<content type='text'>
This should fix gh-3165.

Conflicts:
	numpy/distutils/tests/test_exec_command.py
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This should fix gh-3165.

Conflicts:
	numpy/distutils/tests/test_exec_command.py
</pre>
</div>
</content>
</entry>
<entry>
<title>TST: skip general test on non-posix platforms</title>
<updated>2013-03-10T14:31:07+00:00</updated>
<author>
<name>Ondrej Certik</name>
<email>ondrej.certik@gmail.com</email>
</author>
<published>2013-03-10T14:31:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=5099683c351929e938985fd770b0a03cf7285ecb'/>
<id>5099683c351929e938985fd770b0a03cf7285ecb</id>
<content type='text'>
Add a comment explaining the issue.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a comment explaining the issue.
</pre>
</div>
</content>
</entry>
<entry>
<title>TST: Redirect the other stream to temp. file</title>
<updated>2013-03-10T14:24:32+00:00</updated>
<author>
<name>Ondrej Certik</name>
<email>ondrej.certik@gmail.com</email>
</author>
<published>2013-03-10T14:21:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=36c43214d25101c7acd63e0394877b5e04661639'/>
<id>36c43214d25101c7acd63e0394877b5e04661639</id>
<content type='text'>
Now things behave the same if executed with either of:

nosetests
nosetests -s
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now things behave the same if executed with either of:

nosetests
nosetests -s
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement separate checking for stdout and stderr</title>
<updated>2013-03-09T11:30:43+00:00</updated>
<author>
<name>Ondrej Certik</name>
<email>ondrej.certik@gmail.com</email>
</author>
<published>2013-03-09T11:22:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=92770f4c6d6b74ee8788e621b67e757c1a21138e'/>
<id>92770f4c6d6b74ee8788e621b67e757c1a21138e</id>
<content type='text'>
And enable a test for this that was failing before.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
And enable a test for this that was failing before.
</pre>
</div>
</content>
</entry>
<entry>
<title>TST: add robust tests for exec_command()</title>
<updated>2013-03-09T11:21:10+00:00</updated>
<author>
<name>Ondrej Certik</name>
<email>ondrej.certik@gmail.com</email>
</author>
<published>2013-03-09T11:19:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=2fbdd9903fc9bf6e1fe797e92c0157abd67850ce'/>
<id>2fbdd9903fc9bf6e1fe797e92c0157abd67850ce</id>
<content type='text'>
First, we test both stdout and stderr.

Second, we now test both _exec_command_posix() and _exec_command(), see
numpy/distutils/exec_command.py. This reveals a bug in the implementation which
will be fixed in the next commit. For now the failing test is commented out so
that all tests still pass.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
First, we test both stdout and stderr.

Second, we now test both _exec_command_posix() and _exec_command(), see
numpy/distutils/exec_command.py. This reveals a bug in the implementation which
will be fixed in the next commit. For now the failing test is commented out so
that all tests still pass.
</pre>
</div>
</content>
</entry>
</feed>
