mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
skip gtk tests on macos x.
travis-ci/etc.
This commit is contained in:
parent
501d7f83ca
commit
8980adbd35
1 changed files with 5 additions and 1 deletions
|
@ -2,6 +2,9 @@
|
||||||
# Written by Shlomi Fish, under the MIT Expat License.
|
# Written by Shlomi Fish, under the MIT Expat License.
|
||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
|
from sys import platform
|
||||||
|
|
||||||
|
IS_MAC = (platform == "darwin")
|
||||||
for module_name in \
|
for module_name in \
|
||||||
[
|
[
|
||||||
'pysollib.acard',
|
'pysollib.acard',
|
||||||
|
@ -200,8 +203,9 @@ for module_name in \
|
||||||
'pysollib.wizardpresets',
|
'pysollib.wizardpresets',
|
||||||
'pysollib.wizardutil',
|
'pysollib.wizardutil',
|
||||||
]:
|
]:
|
||||||
|
is_gtk = ("gtk" in module_name)
|
||||||
for ver in [2, 3]:
|
for ver in [2, 3]:
|
||||||
if ver == 2 or "gtk" not in module_name:
|
if ((not is_gtk) or (ver == 2 and (not IS_MAC))):
|
||||||
def fmt(s):
|
def fmt(s):
|
||||||
return s % {'module_name': module_name, 'ver': ver}
|
return s % {'module_name': module_name, 'ver': ver}
|
||||||
open(os.path.join(".", "tests", "individually-importing", fmt("import_v%(ver)d_%(module_name)s.py")), 'w').write(fmt('''#!/usr/bin/env python%(ver)d
|
open(os.path.join(".", "tests", "individually-importing", fmt("import_v%(ver)d_%(module_name)s.py")), 'w').write(fmt('''#!/usr/bin/env python%(ver)d
|
||||||
|
|
Loading…
Add table
Reference in a new issue