Skip to content

Commit 95e3701

Browse files
committed
Skip test_canary_byte on release build
1 parent 89a8ac9 commit 95e3701

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_capi/test_bytes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import textwrap
22
import unittest
3+
from test import support
34
from test.support import import_helper
45
from test.support.script_helper import assert_python_failure
56

@@ -432,6 +433,7 @@ def test_example_resize(self):
432433
def test_example_highlevel(self):
433434
self.assertEqual(_testcapi.byteswriter_highlevel(), b'Hello World!')
434435

436+
@unittest.skipUnless(support.Py_DEBUG, 'need a Python debug build')
435437
def test_canary_byte(self):
436438
small_buffer = _testcapi.PyBytesWriter_small_buffer
437439
large_size = small_buffer * 10

0 commit comments

Comments
 (0)