Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preserve Parameter subclass when copying Parameters #964

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

# Parameter type on Parameters copy

cc085a9
Select commit
Loading
Failed to load commit list.
Open

preserve Parameter subclass when copying Parameters #964

# Parameter type on Parameters copy
cc085a9
Select commit
Loading
Failed to load commit list.
Azure Pipelines / lmfit.lmfit-py failed Aug 17, 2024 in 11m 16s

Build #20240808.1 had test failures

Details

Tests

  • Failed: 14 (0.13%)
  • Passed: 10,838 (99.83%)
  • Other: 4 (0.04%)
  • Total: 10,856
Code coverage

  • 3505 of 3783 lines covered (92.65%)

Annotations

Check failure on line 80 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / lmfit.lmfit-py

Build log #L80

Bash exited with code '1'.

Check failure on line 104 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / lmfit.lmfit-py

Build log #L104

Bash exited with code '2'.

Check failure on line 88 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / lmfit.lmfit-py

Build log #L88

1 test(s) failed, 681 test(s) collected.

Check failure on line 146 in Build log

See this annotation in the file changed.

@azure-pipelines 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

See this annotation in the file changed.

@azure-pipelines 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

See this annotation in the file changed.

@azure-pipelines 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

See this annotation in the file changed.

@azure-pipelines 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

See this annotation in the file changed.

@azure-pipelines 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'>