Skip to content

Commit

Permalink
Remove deprecated get_fileext() method
Browse files Browse the repository at this point in the history
  • Loading branch information
emolter committed Feb 12, 2025
1 parent e1256f8 commit f4c9edb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
8 changes: 0 additions & 8 deletions src/stdatamodels/model_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,14 +1007,6 @@ def convert_val(val):
def schema(self):
return self._schema

def get_fileext(self):
warnings.warn(
"get_fileext always returns 'fits' and will be removed in an upcoming release",
DeprecationWarning,
stacklevel=2,
)
return "fits"

@property
def history(self):
"""
Expand Down
6 changes: 0 additions & 6 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,3 @@ def find_gen_by_id(object_id):
# many models which would indicate they are difficult to garbage
# collect.
assert len(mids) < 2


def test_get_fileext_deprecation():
m = DataModel()
with pytest.warns(DeprecationWarning):
assert m.get_fileext() == "fits"

0 comments on commit f4c9edb

Please sign in to comment.