@@ -18,16 +18,6 @@ def setUp(self):
18
18
awsiot .mqtt_connection_builder ._metrics_str = None
19
19
awsiot .mqtt5_client_builder ._metrics_str = None
20
20
21
- def test_importlib_metadata_available (self ):
22
- """Test that importlib.metadata is available and working"""
23
- try :
24
- # Test that we can import importlib.metadata
25
- import importlib .metadata
26
-
27
- self .assertTrue (True , "importlib.metadata is available" )
28
- except ImportError :
29
- self .fail ("importlib.metadata should be available in Python 3.8+" )
30
-
31
21
def test_metrics_string_generation_mqtt_connection_builder (self ):
32
22
"""Test that mqtt_connection_builder uses importlib.metadata for version detection"""
33
23
from awsiot import mqtt_connection_builder
@@ -133,18 +123,6 @@ def test_no_pkg_resources_import(self):
133
123
self .assertNotIn ("pkg_resources" , awsiot .mqtt_connection_builder .__dict__ )
134
124
self .assertNotIn ("pkg_resources" , awsiot .mqtt5_client_builder .__dict__ )
135
125
136
- def test_importlib_metadata_import (self ):
137
- """Test that importlib.metadata is properly imported in the modified files"""
138
- # Check that importlib.metadata is available (though it might be imported locally)
139
- # We can't directly check if it's imported since it's done inside the function
140
- # But we can verify the function works with importlib.metadata
141
- try :
142
- import importlib .metadata
143
-
144
- self .assertTrue (True , "importlib.metadata is available for import" )
145
- except ImportError :
146
- self .fail ("importlib.metadata should be available" )
147
-
148
126
149
127
if __name__ == "__main__" :
150
128
unittest .main ()
0 commit comments