Skip to content

Test Failures in the pipeline #642

Description

@saurabh500

Found this failure while looking into the pipelines.

https://sqlclientdrivers.visualstudio.com/public/_build/results?buildId=157865&view=logs&j=15f12f6b-5115-5c90-8b46-492e8e236788&t=c7b07bc8-4166-5494-ac4e-f321834baa1c&s=d654deb9-056d-50a2-1717-90c08683d50a

https://sqlclientdrivers.visualstudio.com/public/_build/results?buildId=157685&view=logs&j=15f12f6b-5115-5c90-8b46-492e8e236788&t=c7b07bc8-4166-5494-ac4e-f321834baa1c

Example job Run pytest with coverage in Ubuntu ARM64 container

tests/test_004_cursor.py::test_executemany_numeric_override_needed
  /opt/venv/lib/python3.10/site-packages/_pytest/unraisableexception.py:67: PytestUnraisableExceptionWarning: Exception ignored in: <function Cursor.__del__ at 0x55054afac0>
  
  Traceback (most recent call last):
    File "/workspace/mssql_python/cursor.py", line 3186, in __del__
      self.close()
    File "/workspace/mssql_python/cursor.py", line 782, in close
      if self.closed:
  AttributeError: 'Cursor' object has no attribute 'closed'. Did you mean: 'close'?
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/workspace/mssql_python/cursor.py", line 3192, in __del__
      if sys and sys._is_finalizing():
  AttributeError: module 'sys' has no attribute '_is_finalizing'. Did you mean: 'is_finalizing'?
  
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
    warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
--------- generated xml file: /workspace/test-results-Ubuntu-arm64.xml ---------

The failures are silently ignored.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriage doneIssues that are triaged by dev team and are in investigation.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions