diff --git a/sdks/python/apache_beam/io/gcp/gcsio_test.py b/sdks/python/apache_beam/io/gcp/gcsio_test.py index 5995a794f23f3..c9a7fb72f7799 100644 --- a/sdks/python/apache_beam/io/gcp/gcsio_test.py +++ b/sdks/python/apache_beam/io/gcp/gcsio_test.py @@ -181,6 +181,7 @@ def download_as_bytes(self, **kwargs): def __eq__(self, other): return self.bucket.get_blob(self.name) is other.bucket.get_blob(other.name) + @unittest.skipIf(NotFound is None, 'GCP dependencies are not installed') class TestGCSPathParser(unittest.TestCase): @@ -519,6 +520,7 @@ def test_blob_delete(self): blob.delete() self.assertFalse(blob_name in bucket.blobs) + if __name__ == '__main__': logging.getLogger().setLevel(logging.INFO) unittest.main()