Skip to content

Commit 69ea0b0

Browse files
committed
feat: Added test for double qconfig_save failure
Signed-off-by: Brandon Groth <[email protected]>
1 parent 34e5ad1 commit 69ea0b0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/models/test_saveconfig.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,24 @@ def test_save_config_minimal(
179179

180180
delete_config()
181181

182+
183+
def test_double_qconfig_save(
184+
config_fp32: dict,
185+
):
186+
"""
187+
Ensure that using qconfig_save multiple times doesn't fail.
188+
189+
Args:
190+
config_fp32 (dict): Config for fp32 quantization
191+
"""
192+
delete_config()
193+
194+
qconfig_save(config_fp32, minimal=False)
195+
qconfig_save(config_fp32, minimal=False)
196+
197+
delete_config()
198+
199+
182200
def test_load_config_restored_pair(
183201
config_fp32: dict,
184202
wanted_pair: tuple,

0 commit comments

Comments
 (0)