Message75397
Interesting, I hadn't noticed that addition to the platform module for 2.6.
A bit more verbose than sys.vm, but it would certainly do the trick :)
In that case, I would suggest something along the lines of the following:
vm = platform.python_implementation().lower()
reference_vm = "cpython"
def impl_detail(*vm_names):
if vm_names:
vm_names = [vm.lower() for vm in vm_names]
else:
vm_names = [reference_vm]
if vm in vm_names:
# Test the implementation detail
else:
# Skip this test |
|
Date |
User |
Action |
Args |
2008-10-30 23:03:37 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon, arigo, Carl.Friedrich.Bolz, benjamin.peterson |
2008-10-30 23:03:37 | ncoghlan | set | messageid: <1225407817.51.0.0331632810102.issue4242@psf.upfronthosting.co.za> |
2008-10-30 23:03:21 | ncoghlan | link | issue4242 messages |
2008-10-30 23:03:21 | ncoghlan | create | |
|