MCPcopy
hub / github.com/pex-tool/pex / assert_platform_machine

Function assert_platform_machine

tests/test_pep_508.py:119–124  ·  view source on GitHub ↗
(
        expected,  # type: str
        platform,  # type: str
    )

Source from the content-addressed store, hash-verified

117 # type: () -> None
118
119 def assert_platform_machine(
120 expected, # type: str
121 platform, # type: str
122 ):
123 marker_environment = MarkerEnvironment.from_platform(abbreviated_platforms.create(platform))
124 assert expected == marker_environment.platform_machine
125
126 assert_platform_machine("x86_64", "linux-x86_64-cp-37-cp37m")
127 assert_platform_machine("x86_64", "manylinux1-x86_64-cp-37-cp37m")

Calls 2

from_platformMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected