diff options
Diffstat (limited to 'roles/openshift_certificate_expiry/test')
-rw-r--r-- | roles/openshift_certificate_expiry/test/test_fakeopensslclasses.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/roles/openshift_certificate_expiry/test/test_fakeopensslclasses.py b/roles/openshift_certificate_expiry/test/test_fakeopensslclasses.py index e98d6ac64..2e245191f 100644 --- a/roles/openshift_certificate_expiry/test/test_fakeopensslclasses.py +++ b/roles/openshift_certificate_expiry/test/test_fakeopensslclasses.py @@ -11,7 +11,7 @@ import pytest # Disable import-error b/c our libraries aren't loaded in jenkins # pylint: disable=import-error,wrong-import-position # place class in our python path -module_path = os.path.join('/'.join(os.path.realpath(__file__).split('/')[:-1]), 'library') +module_path = os.path.join('/'.join(os.path.realpath(__file__).split(os.path.sep)[:-1]), 'library') sys.path.insert(0, module_path) openshift_cert_expiry = pytest.importorskip("openshift_cert_expiry") @@ -77,10 +77,6 @@ class TestFakeOpenSSLClasses(unittest.TestCase): self.assertEqual('CN=172.30.0.1', ', '.join(subjects)) - def tearDown(self): - '''TearDown method''' - pass - if __name__ == "__main__": unittest.main() |