Skip to content

Commit 8cab999

Browse files
petercorkeclaude
andcommitted
test: mark the seeded fuzzing generators as not security use
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent 8cf0d2d commit 8cab999

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/test_in_edges.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def test_removing_a_vertex_clears_edges_in_both_directions(self):
175175
self.assertEqual(c.out_degree, 0)
176176

177177
def test_random_sequences(self):
178-
rng = random.Random(7)
178+
rng = random.Random(7) # nosec B311 - seeded test fuzzing, not security
179179
for trial in range(25):
180180
g = DGraph()
181181
vs = [g.add_vertex([i, 0]) for i in range(8)]

‎tests/test_validate.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_stays_valid_through_removals(self):
6363
self.assertEqual(g.validate(), [])
6464

6565
def test_random_edit_sequences(self):
66-
rng = random.Random(3)
66+
rng = random.Random(3) # nosec B311 - seeded test fuzzing, not security
6767
for Graph in (UGraph, DGraph):
6868
g = Graph()
6969
vs = [g.add_vertex([i, 0]) for i in range(7)]

0 commit comments

Comments
 (0)