From 9cda20bbb966fe1e4ae51921d566c668654ee5e1 Mon Sep 17 00:00:00 2001
From: Vincent Vanlaer <vincent.vanlaer@skynet.be>
Date: Sun, 3 Sep 2023 00:00:54 +0200
Subject: [PATCH] Remove trio.tests import causing warnings

Index: pytest_trio/_tests/test_hypothesis_interaction.py
--- pytest_trio/_tests/test_hypothesis_interaction.py.orig
+++ pytest_trio/_tests/test_hypothesis_interaction.py
@@ -1,10 +1,5 @@
 import pytest
 import trio
-from trio.tests.test_scheduler_determinism import (
-    scheduler_trace,
-    test_the_trio_scheduler_is_not_deterministic,
-    test_the_trio_scheduler_is_deterministic_if_seeded,
-)
 from hypothesis import given, settings, strategies as st
 
 from pytest_trio.plugin import _trio_test_runner_factory
@@ -36,6 +31,22 @@ async def test_mark_outer(n):
 async def test_mark_and_parametrize(x, y):
     assert x is None
     assert y in (1, 2)
+
+
+async def scheduler_trace():
+    """Returns a scheduler-dependent value we can use to check determinism."""
+    trace = []
+
+    async def tracer(name):
+        for i in range(10):
+            trace.append((name, i))
+            await trio.sleep(0)
+
+    async with trio.open_nursery() as nursery:
+        for i in range(5):
+            nursery.start_soon(tracer, i)
+
+    return tuple(trace)
 
 
 def test_the_trio_scheduler_is_deterministic_under_hypothesis():
