FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-157415: Skip @support.nomemtest if Python is built with TSAN by vstinner · Pull Request #157416 · python/cpython · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 5 additions & 1 deletion Lib/test/support/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,11 @@ def internal(*args, **kwargs):
import_module('_testcapi')
return test(*args, **kwargs)

return cpython_only(internal)
use_tsan = check_sanitizer(thread=True)
reason ='not working with thread sanitizer (gh-157415)'
skip_if_tsan = unittest.skipIf(use_tsan, reason)

return cpython_only(skip_if_tsan(internal))

def bigaddrspacetest(f):
"""Decorator for tests that fill the address space."""
Expand Down
1 change: 1 addition & 0 deletions Lib/test/test_io/test_memoryio.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@ def __buffer__(self, flags):
self.assertEqual(memio.getvalue(), b"01AAA56789")
self.assertEqual(memio.tell(), 5)

@support.nomemtest
def test_memory_error(self):
# gh-157242: io.BytesIO() must not close the file on MemoryError
_testcapi = import_helper.import_module('_testcapi')
Expand Down
Loading

Back | FazBrowse Home | New Git URL