@@ -19,7 +19,6 @@ def _is_env_var_defined(env_var):
1919
2020# Note: If you use tox, remember to pass them through via tox.ini
2121# https://tox.wiki/en/latest/example/basic.html#passing-down-environment-variables
22- is_running_on_travis_ci = _is_env_var_defined ("TRAVIS" )
2322is_running_on_github_ci = _is_env_var_defined ("GITHUB_ACTIONS" )
2423
2524@pytest .fixture
@@ -46,45 +45,45 @@ def test_nonexistent_file_persistence(temp_location):
4645 _test_nonexistent_persistence (FilePersistence (temp_location ))
4746
4847@pytest .mark .skipif (
49- is_running_on_travis_ci or not sys .platform .startswith ('win' ),
48+ not sys .platform .startswith ('win' ),
5049 reason = "Requires Windows Desktop" )
5150def test_file_persistence_with_data_protection (temp_location ):
5251 try :
5352 _test_persistence_roundtrip (FilePersistenceWithDataProtection (temp_location ))
5453 except PersistenceDecryptionError :
55- if is_running_on_github_ci or is_running_on_travis_ci :
54+ if is_running_on_github_ci :
5655 logging .warning ("DPAPI tends to fail on Windows VM. Run this on your desktop to double check." )
5756 else :
5857 raise
5958
6059@pytest .mark .skipif (
61- is_running_on_travis_ci or not sys .platform .startswith ('win' ),
60+ not sys .platform .startswith ('win' ),
6261 reason = "Requires Windows Desktop" )
6362def test_nonexistent_file_persistence_with_data_protection (temp_location ):
6463 _test_nonexistent_persistence (FilePersistenceWithDataProtection (temp_location ))
6564
6665@pytest .mark .skipif (
6766 not sys .platform .startswith ('darwin' ),
68- reason = "Requires OSX. Whether running on TRAVIS CI does not seem to matter. " )
67+ reason = "Requires OSX." )
6968def test_keychain_persistence (temp_location ):
7069 _test_persistence_roundtrip (KeychainPersistence (temp_location ))
7170
7271@pytest .mark .skipif (
7372 not sys .platform .startswith ('darwin' ),
74- reason = "Requires OSX. Whether running on TRAVIS CI does not seem to matter. " )
73+ reason = "Requires OSX." )
7574def test_nonexistent_keychain_persistence (temp_location ):
7675 random_service_name = random_account_name = str (id (temp_location ))
7776 _test_nonexistent_persistence (
7877 KeychainPersistence (temp_location , random_service_name , random_account_name ))
7978
8079@pytest .mark .skipif (
81- is_running_on_travis_ci or not sys .platform .startswith ('linux' ),
80+ not sys .platform .startswith ('linux' ),
8281 reason = "Requires Linux Desktop. Headless or SSH session won't work." )
8382def test_libsecret_persistence (temp_location ):
8483 _test_persistence_roundtrip (LibsecretPersistence (temp_location ))
8584
8685@pytest .mark .skipif (
87- is_running_on_travis_ci or not sys .platform .startswith ('linux' ),
86+ not sys .platform .startswith ('linux' ),
8887 reason = "Requires Linux Desktop. Headless or SSH session won't work." )
8988def test_nonexistent_libsecret_persistence (temp_location ):
9089 random_schema_name = random_value = str (id (temp_location ))
0 commit comments