Skip to content

Commit 3bfefae

Browse files
committed
update test_memory_create for free-threaded Python
free-threaded builds use a new GC that skips PyGC_Head, and this seems to cause some objects to change in size by ~16 bytes
1 parent a1d36ce commit 3bfefae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tests/test_sycl_usm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_memory_create(memory_ctor):
5959
assert mobj.sycl_queue == queue
6060
assert type(repr(mobj)) is str
6161
assert type(bytes(mobj)) is bytes
62-
assert sys.getsizeof(mobj) > nbytes
62+
assert sys.getsizeof(mobj) >= nbytes
6363

6464

6565
def test_memory_create_with_np():

0 commit comments

Comments
 (0)