diff mbox series

tests/setup: Drop win32 platform reference

Message ID 20260723134936.928230-1-richard.purdie@linuxfoundation.org
State New
Headers show
Series tests/setup: Drop win32 platform reference | expand

Commit Message

Richard Purdie July 23, 2026, 1:49 p.m. UTC
bitbake doesn't run on win32 and likely never will so we don't need
this reference.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/bb/tests/setup.py | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/lib/bb/tests/setup.py b/lib/bb/tests/setup.py
index 5fcbcbcf0e2..53a07ee3a68 100644
--- a/lib/bb/tests/setup.py
+++ b/lib/bb/tests/setup.py
@@ -907,12 +907,8 @@  class PyPIPackagingTest(unittest.TestCase):
         venv.create(self.venv_dir, with_pip=False, symlinks=True)
 
         # Get paths to venv python and bin directory
-        if sys.platform == 'win32':
-            self.venv_python = os.path.join(self.venv_dir, 'Scripts', 'python.exe')
-            self.venv_bin = os.path.join(self.venv_dir, 'Scripts')
-        else:
-            self.venv_python = os.path.join(self.venv_dir, 'bin', 'python')
-            self.venv_bin = os.path.join(self.venv_dir, 'bin')
+        self.venv_python = os.path.join(self.venv_dir, 'bin', 'python')
+        self.venv_bin = os.path.join(self.venv_dir, 'bin')
 
         # Install wheel using pip from the outer environment (offline, no-deps)
         site_packages = self._get_site_packages()