Skip to contentSkip to conversation

tests/setup: Drop win32 platform reference

PATCH New Richard Purdie 1 participant 1 message Jul 23

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/setup: Drop win32 platform reference

bitbake doesn't run on win32 and likely never will so we don't need this reference.

---
 lib/bb/tests/setup.py | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
lib/bb/tests/setup.py +2 -6
index 5fcbcbcf0e2..53a07ee3a68 100644
@@ -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()