Skip to content

Commit 9553502

Browse files
committed
add a test for a bug
1 parent 0991ad1 commit 9553502

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

python/private/pypi/pep508_env.bzl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ os_name_select_map = {
139139
_DEFAULT: "posix",
140140
}
141141

142-
# TODO @aignas 2025-07-07: add a test to ensure that this is tested
143142
def _get_from_map(m, key):
144143
if _DEFAULT in m:
145144
return m.get(key, m[_DEFAULT])

tests/pypi/pep508/evaluate_tests.bzl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,13 @@ def _evaluate_with_aliases(env):
260260
"platform_system == 'Darwin' and platform_machine == 'x86_32'": True,
261261
"platform_system == 'Darwin' and platform_machine == 'x86_64'": False,
262262
},
263+
("freebsd", "x86_32"): {
264+
"platform_system == 'FreeBSD' and platform_machine == 'i386'": True,
265+
"platform_system == 'FreeBSD' and platform_machine == 'i686'": True,
266+
"platform_system == 'FreeBSD' and platform_machine == 'x86_32'": True,
267+
"platform_system == 'FreeBSD' and platform_machine == 'x86_64'": False,
268+
"platform_system == 'FreeBSD' and os_name == 'posix'": True,
269+
},
263270
}.items(): # buildifier: @unsorted-dict-items
264271
for input, want in tests.items():
265272
_check_evaluate(env, input, want, pep508_env(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy