Skip to content

Commit

Permalink
Merge #758 (DougBurke) - Fix test break due to pytest 5.4.0 update (i…
Browse files Browse the repository at this point in the history
…ssue #757)

Fix test break due to pytest 5.4.0 update (issue #757)
  • Loading branch information
wmclaugh authored and Marie-Terrell committed Apr 29, 2020
1 parent 4c34938 commit b930987
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sherpa/models/tests/test_regrid_unit.py
@@ -1,5 +1,5 @@
#
# Copyright (C) 2017, 2018, 2019 Smithsonian Astrophysical Observatory
# Copyright (C) 2017, 2018, 2019, 2020 Smithsonian Astrophysical Observatory
#
#
# This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -439,7 +439,7 @@ def test_regrid1d_error_grid_mismatch_1(setup_1d):

def test_ui_regrid1d_non_overlapping_not_allowed():
"""Integrated data space must not overlap"""

ui.dataspace1d(1,100,2,dstype=Data1DInt)
b1 = Box1D()
ui.set_model(b1)
Expand All @@ -448,7 +448,7 @@ def test_ui_regrid1d_non_overlapping_not_allowed():
b1.ampl.max=100
grid_hi = np.linspace(2,101,600)
grid_lo = np.linspace(1,100,600)
with pytest.raises(ModelErr) as excinfo:
with pytest.raises(ModelErr) as excinfo:
rb1 = b1.regrid(grid_lo,grid_hi)

assert ModelErr.dict['needsint'] in str(excinfo.value)
Expand All @@ -462,7 +462,7 @@ def test_low_level_regrid1d_non_overlapping_not_allowed():
c = Box1D()
lo = np.linspace(1,100,600)
hi = np.linspace(2,101,600)
with pytest.raises(ModelErr) as excinfo:
with pytest.raises(ModelErr) as excinfo:
c.regrid(lo, hi)

assert ModelErr.dict['needsint'] in str(excinfo.value)
Expand Down Expand Up @@ -856,7 +856,7 @@ def test_evaluation_space2d_start_end(xlo, xhi, ylo, yhi):
@pytest.mark.parametrize('integrated', [
True, False
])
def test_evaluation_space2d_overlaps(setup_overlapping_spaces):
def test_evaluation_space2d_overlaps(x_overlaps, y_overlaps, integrated, setup_overlapping_spaces):
x1, y1, x2, y2, overlaps = setup_overlapping_spaces

space_one = EvaluationSpace2D(x=x1[0], xhi=x1[1], y=y1[0], yhi=y1[1])
Expand Down

0 comments on commit b930987

Please sign in to comment.