Skip to content

Commit d762f9a

Browse files
authored
Merge pull request #134 from ycexiao/correct-test-skip-message
tests: correct mesages for skipping tests involving ``diffpy.srreal``
2 parents 09a8e1c + 4531343 commit d762f9a

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

news/correct-test-skip-message.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* No news added: Correct messages for skipping tests involving diffpy.srreal.
4+
5+
**Changed:**
6+
7+
* <news item>
8+
9+
**Deprecated:**
10+
11+
* <news item>
12+
13+
**Removed:**
14+
15+
* <news item>
16+
17+
**Fixed:**
18+
19+
* <news item>
20+
21+
**Security:**
22+
23+
* <news item>

tests/test_pdf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def test_setQmax(diffpy_structure_available, diffpy_srreal_available):
221221
from diffpy.structure import Structure
222222

223223
if not diffpy_srreal_available:
224-
pytest.skip("diffpy.structure package not available")
224+
pytest.skip("diffpy.srreal package not available")
225225

226226
pc = PDFContribution("pdf")
227227
pc.setQmax(21)
@@ -240,7 +240,7 @@ def test_getQmax(diffpy_structure_available, diffpy_srreal_available):
240240
from diffpy.structure import Structure
241241

242242
if not diffpy_srreal_available:
243-
pytest.skip("diffpy.structure package not available")
243+
pytest.skip("diffpy.srreal package not available")
244244

245245
# cover all code branches in PDFContribution._getMetaValue
246246
# (1) contribution metadata
@@ -269,7 +269,7 @@ def test_savetxt(
269269
from diffpy.structure import Structure
270270

271271
if not diffpy_srreal_available:
272-
pytest.skip("diffpy.structure package not available")
272+
pytest.skip("diffpy.srreal package not available")
273273

274274
pc = PDFContribution("pdf")
275275
pc.loadData(datafile("si-q27r60-xray.gr"))
@@ -295,7 +295,7 @@ def test_pickling(
295295
from diffpy.structure import loadStructure
296296

297297
if not diffpy_srreal_available:
298-
pytest.skip("diffpy.structure package not available")
298+
pytest.skip("diffpy.srreal package not available")
299299

300300
pc = PDFContribution("pdf")
301301
pc.loadData(datafile("ni-q27r100-neutron.gr"))

0 commit comments

Comments
 (0)