<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/testing/utils.py, branch dependabot/pip/gitpython-3.1.14</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>MAINT: Remove unnecessary 'from __future__ import ...' statements</title>
<updated>2020-01-03T15:48:11+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2019-08-27T11:36:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=ed1e9659f103260a32536b4a7615393e3b1173dc'/>
<id>ed1e9659f103260a32536b4a7615393e3b1173dc</id>
<content type='text'>
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Add new deprecation date.</title>
<updated>2019-09-19T00:33:16+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2019-09-19T00:33:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=31e3be19e9d1fa14e8961bcc4a1580ea2c0f6a26'/>
<id>31e3be19e9d1fa14e8961bcc4a1580ea2c0f6a26</id>
<content type='text'>
[ci skip]</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[ci skip]</pre>
</div>
</content>
</entry>
<entry>
<title>Changing ImportWarning to DeprecationWarning</title>
<updated>2019-09-18T23:41:45+00:00</updated>
<author>
<name>Brigitta Sipocz</name>
<email>bsipocz@gmail.com</email>
</author>
<published>2019-09-18T23:41:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=d53219bad0f8af4b0cc461d165f9d729e44d91dd'/>
<id>d53219bad0f8af4b0cc461d165f9d729e44d91dd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>DEP: numpy.testing.rand (#14325)</title>
<updated>2019-08-22T16:42:15+00:00</updated>
<author>
<name>Maxwell Aladago</name>
<email>maxwell.aladago@gmail.com</email>
</author>
<published>2019-08-22T16:42:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=99b7afc519ff4708ed3b66f288125a404efced2e'/>
<id>99b7afc519ff4708ed3b66f288125a404efced2e</id>
<content type='text'>
* Deprecation: numpy.testing.rand</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Deprecation: numpy.testing.rand</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: add version since deprecation in the deprecation message.</title>
<updated>2018-09-25T21:02:33+00:00</updated>
<author>
<name>Matthias Bussonnier</name>
<email>bussonniermatthias@gmail.com</email>
</author>
<published>2018-09-25T17:09:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=2523097cab9fea3da5072ee2fd84a6a5fac42bbc'/>
<id>2523097cab9fea3da5072ee2fd84a6a5fac42bbc</id>
<content type='text'>
Otherwise the deprecation message is not that helpful as I have to dig
through the source to find out since when and whether conditional import
is necessary in my code. I may not have numpy on my dev machine (this
message was on CI). So it's one extra step for the consumer.

That's also for you, you have more chance of having consumer update
their code when they have more informations in the deprecation message,
so you can drop old code faster !

At least kudo to Charles Harris for including a comments just above,
that prevented me from having to git blame and go spelunking for knowing
which versions were or not affected.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Otherwise the deprecation message is not that helpful as I have to dig
through the source to find out since when and whether conditional import
is necessary in my code. I may not have numpy on my dev machine (this
message was on CI). So it's one extra step for the consumer.

That's also for you, you have more chance of having consumer update
their code when they have more informations in the deprecation message,
so you can drop old code faster !

At least kudo to Charles Harris for including a comments just above,
that prevented me from having to git blame and go spelunking for knowing
which versions were or not affected.
</pre>
</div>
</content>
</entry>
<entry>
<title>TST: Extract a helper function to test for reference cycles</title>
<updated>2018-04-12T08:25:53+00:00</updated>
<author>
<name>Eric Wieser</name>
<email>wieser.eric@gmail.com</email>
</author>
<published>2018-04-12T07:27:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=5c3d52405b647bc69185f657ed4c180c02ac14f7'/>
<id>5c3d52405b647bc69185f657ed4c180c02ac14f7</id>
<content type='text'>
This also means we can now test that our test is actually able to detect the type of failure we expect

Trying to give myself some tools to debug the failure at https://github.com/numpy/numpy/pull/10882/files#r180813166
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This also means we can now test that our test is actually able to detect the type of failure we expect

Trying to give myself some tools to debug the failure at https://github.com/numpy/numpy/pull/10882/files#r180813166
</pre>
</div>
</content>
</entry>
<entry>
<title>DEP: Issue deprecation warnings for some imports.</title>
<updated>2018-04-07T02:47:00+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2018-04-04T18:31:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=cf73c76d3078b30b521f8abd19ae7996987784f7'/>
<id>cf73c76d3078b30b521f8abd19ae7996987784f7</id>
<content type='text'>
The following modules have been moved or renamed and should not be
imported. This adds shim modules for the old names that issue a
DeprecationWarning on import.

* numpy/core/umath_tests.py
* numpy/testing/decorators.py
* numpy/testing/noseclasses.py
* numpy/testing/nosetester.py
* numpy/testing/utils.py

Closes #10845.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The following modules have been moved or renamed and should not be
imported. This adds shim modules for the old names that issue a
DeprecationWarning on import.

* numpy/core/umath_tests.py
* numpy/testing/decorators.py
* numpy/testing/noseclasses.py
* numpy/testing/nosetester.py
* numpy/testing/utils.py

Closes #10845.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Fix obvious warning bugs.</title>
<updated>2018-03-30T08:49:53+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2018-03-30T08:49:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=ba5625161b36cd891c883bf4bc5a99590bcb2a9a'/>
<id>ba5625161b36cd891c883bf4bc5a99590bcb2a9a</id>
<content type='text'>
The warning type is the second, not the first, argument.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The warning type is the second, not the first, argument.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Warn when importing numpy.testing.&lt;module&gt;.</title>
<updated>2018-03-29T17:41:35+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2018-03-27T15:41:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=2589616ca6a9b6270c9621af038d90972154914b'/>
<id>2589616ca6a9b6270c9621af038d90972154914b</id>
<content type='text'>
Downstream projects were importing directly from the testing modules
rather than from testing. Discourage this.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Downstream projects were importing directly from the testing modules
rather than from testing. Discourage this.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Rearrange numpy/testing files.</title>
<updated>2018-03-29T17:41:35+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2018-03-27T15:26:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=157aedaa50d3c5fc74b45c79fb8b8c4b650217ac'/>
<id>157aedaa50d3c5fc74b45c79fb8b8c4b650217ac</id>
<content type='text'>
This is to prepare for the switch to pytest.

* Rename `numpy/testing/nose_tools` to `numpy/testing/_private`.
* Redirect imports as needed.
* Copy `_testutils.py` from scipy to `numpy/testing/_private`.
* Rename `_testutils.py` to `_pytester.py` and remove unneeded bits.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is to prepare for the switch to pytest.

* Rename `numpy/testing/nose_tools` to `numpy/testing/_private`.
* Redirect imports as needed.
* Copy `_testutils.py` from scipy to `numpy/testing/_private`.
* Rename `_testutils.py` to `_pytester.py` and remove unneeded bits.
</pre>
</div>
</content>
</entry>
</feed>
