Skip to content

Commit 4a0dd5d

Browse files
committed
MNT: remove registration of dummy PeakWidthModel
Make unit tests exit with a clean registry.
1 parent aa95e97 commit 4a0dd5d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/diffpy/srreal/tests/testpeakwidthmodel.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,16 @@ def ticker(self):
261261
self.tcnt += 1
262262
return PeakWidthModel.ticker(self)
263263

264-
MyPWM()._registerThisType()
265-
266264
# End of class MyPWM
267265

268266
class TestPeakWidthOwner(unittest.TestCase):
269267

268+
@classmethod
269+
def tearDownClass(cls):
270+
assert "mypwm" not in PeakWidthModel.getRegisteredTypes()
271+
return
272+
273+
270274
def setUp(self):
271275
self.pc = PDFCalculator()
272276
self.dbpc = DebyePDFCalculator()

0 commit comments

Comments
 (0)