preserve Parameter subclass when copying Parameters #964
Build #20240808.1 had test failures
Details
- Failed: 14 (0.13%)
- Passed: 10,838 (99.83%)
- Other: 4 (0.04%)
- Total: 10,856
- 3505 of 3783 lines covered (92.65%)
Annotations
Check failure on line 80 in Build log
azure-pipelines / lmfit.lmfit-py
Build log #L80
Bash exited with code '1'.
Check failure on line 104 in Build log
azure-pipelines / lmfit.lmfit-py
Build log #L104
Bash exited with code '2'.
Check failure on line 88 in Build log
azure-pipelines / lmfit.lmfit-py
Build log #L88
1 test(s) failed, 681 test(s) collected.
Check failure on line 146 in Build log
azure-pipelines / lmfit.lmfit-py
Build log #L146
Bash exited with code '1'.
Check failure on line 1 in tests/test_parameters.py::test_check_ast_errors
azure-pipelines / lmfit.lmfit-py
tests/test_parameters.py::test_check_ast_errors
def test_check_ast_errors():
"""Assert that an exception is raised upon AST errors."""
pars = lmfit.Parameters()
msg = r"at expr='<_?ast.Module object at"
> with pytest.raises(NameError, match=msg):
E Failed: DID NOT RAISE <class 'NameError'>
tests/test_parameters.py:44: Failed
Raw output
/home/vsts/work/1/s/tests/test_parameters.py:44: Failed: DID NOT RAISE <class 'NameError'>
Check failure on line 1 in tests/test_parameters.py::test_check_ast_errors
azure-pipelines / lmfit.lmfit-py
tests/test_parameters.py::test_check_ast_errors
def test_check_ast_errors():
"""Assert that an exception is raised upon AST errors."""
pars = lmfit.Parameters()
msg = r"at expr='<_?ast.Module object at"
> with pytest.raises(NameError, match=msg):
E Failed: DID NOT RAISE <class 'NameError'>
tests/test_parameters.py:44: Failed
Raw output
/home/vsts/work/1/s/tests/test_parameters.py:44: Failed: DID NOT RAISE <class 'NameError'>
Check failure on line 1 in tests/test_parameters.py::test_check_ast_errors
azure-pipelines / lmfit.lmfit-py
tests/test_parameters.py::test_check_ast_errors
def test_check_ast_errors():
"""Assert that an exception is raised upon AST errors."""
pars = lmfit.Parameters()
msg = r"at expr='<_?ast.Module object at"
with pytest.raises(NameError, match=msg):
> pars.add('par1', expr='2.0*par2')
E Failed: DID NOT RAISE <class 'NameError'>
tests/test_parameters.py:45: Failed
Raw output
/home/vsts/work/1/s/tests/test_parameters.py:45: Failed: DID NOT RAISE <class 'NameError'>
Check failure on line 1 in tests/test_parameters.py::test_check_ast_errors
azure-pipelines / lmfit.lmfit-py
tests/test_parameters.py::test_check_ast_errors
def test_check_ast_errors():
"""Assert that an exception is raised upon AST errors."""
pars = lmfit.Parameters()
msg = r"at expr='<_?ast.Module object at"
> with pytest.raises(NameError, match=msg):
E Failed: DID NOT RAISE <class 'NameError'>
tests/test_parameters.py:44: Failed
Raw output
/Users/runner/work/1/s/tests/test_parameters.py:44: Failed: DID NOT RAISE <class 'NameError'>