Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit 6b84cb4

Browse files
committed
added failing test
1 parent d09db25 commit 6b84cb4

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

test/test_unit.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ def test_fam_constructor_array_int_d():
9191
for k in a1:
9292
assert k in fam
9393

94-
95-
# def test_fam_constructor_array_a3():
96-
# a1 = np.array(("a", "bb", "ccc"))
97-
# with pytest.raises(TypeError):
98-
# fam = FrozenAutoMap(a1)
99-
10094
# ------------------------------------------------------------------------------
10195

10296

@@ -142,6 +136,13 @@ def test_fam_constructor_array_unicode_c():
142136
fam = FrozenAutoMap(a1)
143137

144138

139+
def test_fam_constructor_array_unicode_d():
140+
a1 = np.array(["", "\x000"], dtype="U2")
141+
a1.flags.writeable = False
142+
fam = FrozenAutoMap(a1)
143+
import ipdb; ipdb.set_trace()
144+
145+
145146
def test_fam_copy_array_unicode_a():
146147
a1 = np.array(("a", "ccc", "bb"))
147148
a1.flags.writeable = False

0 commit comments

Comments
 (0)