We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a804ae8 commit 2fcb7a7Copy full SHA for 2fcb7a7
src/diffpy/structure/tests/testoldimports.py
@@ -41,10 +41,9 @@ def setUpClass(cls):
41
def test_00TopImport(self):
42
"""check import of diffpy.Structure
43
"""
44
- with warnings.catch_warnings(record=True) as w:
45
- warnings.simplefilter('always', category=DeprecationWarning)
+ with warnings.catch_warnings():
+ warnings.simplefilter('ignore', category=DeprecationWarning)
46
import diffpy.Structure as m0
47
- self.assertIs(DeprecationWarning, w[0].category)
48
self.assertIs(diffpy.structure, m0)
49
# second import should raise no warning
50
with warnings.catch_warnings():
0 commit comments