Skip to content

Commit a3e9082

Browse files
committed
oh how i love undefined behaviour
1 parent fe31fcf commit a3e9082

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

tests/test_pointer.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import ctypes
22

3-
from ward import raises, test
4-
53
from _pointers import add_ref
64
from pointers import NULL, InvalidSizeError, Pointer, SegmentViolation
75
from pointers import _ as m
86
from pointers import handle, to_c_ptr, to_ptr
97
from pointers.exceptions import NullPointerError
8+
from ward import raises, test
109

1110

1211
@test("creating pointers")
@@ -89,13 +88,3 @@ def _():
8988
ptr = m & "test"
9089
assert type(ptr) is Pointer
9190
assert m * ptr == "test"
92-
93-
94-
@test("segfault handler")
95-
def _():
96-
@handle
97-
def segfault():
98-
ctypes.string_at(0)
99-
100-
with raises(SegmentViolation):
101-
segfault()

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ ignore=
1313

1414
[isort]
1515
multi_line_output=5
16+
src_paths = ["src"]

0 commit comments

Comments
 (0)