=== modified file 'breezy/tests/__init__.py'
--- old/breezy/tests/__init__.py	2022-10-10 15:06:30 +0000
+++ new/breezy/tests/__init__.py	2022-11-19 18:14:04 +0000
@@ -2230,8 +2230,6 @@
             for env_var, value in old_env.items():
                 osutils.set_or_unset_env(env_var, value)
 
-        bzr_path = self.get_brz_path()
-
         cwd = None
         if working_dir is not None:
             cwd = osutils.getcwd()
@@ -2245,7 +2243,7 @@
             # Include the subprocess's log file in the test details, in case
             # the test fails due to an error in the subprocess.
             self._add_subprocess_log(trace._get_brz_log_filename())
-            command = [bzr_path]
+            command = [sys.executable, '-m', 'breezy']
             if not allow_plugins:
                 command.append('--no-plugins')
             command.extend(process_args)

=== modified file 'breezy/tests/test_selftest.py'
--- old/breezy/tests/test_selftest.py	2022-10-05 21:18:23 +0000
+++ new/breezy/tests/test_selftest.py	2022-11-19 19:31:07 +0000
@@ -2659,14 +2659,13 @@
     def test_run_brz_subprocess_no_plugins(self):
         self.assertRaises(_DontSpawnProcess, self.start_brz_subprocess, [])
         command = self._popen_args[0]
-        self.assertEqual(self.get_brz_path(), command[0])
-        self.assertEqual(['--no-plugins'], command[1:])
+        self.assertIn('--no-plugins', command)
 
     def test_allow_plugins(self):
         self.assertRaises(_DontSpawnProcess, self.start_brz_subprocess, [],
                           allow_plugins=True)
         command = self._popen_args[0]
-        self.assertEqual([], command[2:])
+        self.assertNotIn('--no-plugins', command)
 
     def test_set_env(self):
         self.assertFalse('EXISTANT_ENV_VAR' in os.environ)

