@@ -448,7 +448,7 @@ def test_api_inventory_toosmallflatdict_importbutignore(self, res_dec):
448448 assert inv2 .count == 55
449449
450450 def test_api_inventory_namesuggest (self , res_cmp , check ):
451- """Confirm object name suggestion is nominally working."""
451+ """Confirm object name suggestion is nominally working on a specific object ."""
452452 rst = ":py:function:`attr.evolve`"
453453 idx = 6
454454
@@ -469,6 +469,13 @@ def test_api_inventory_namesuggest(self, res_cmp, check):
469469 check .is_instance (rec [0 ][1 ], Number )
470470 check .equal (rec [0 ][2 ], idx )
471471
472+ @pytest .mark .testall
473+ def test_api_inventory_suggest_operation (self , testall_inv_path ):
474+ """Confirm that a suggest operation works on all smoke-test inventories."""
475+ inv = soi .Inventory (testall_inv_path )
476+
477+ inv .suggest ("class" )
478+
472479 @pytest .mark .testall
473480 def test_api_inventory_datafile_gen_and_reimport (
474481 self ,
@@ -555,6 +562,16 @@ def test_api_inventory_matches_sphinx_ifile(
555562 else :
556563 assert inv .count == sphinx_ifile_data_count (original_ifile_data ), fname
557564
565+ elif "fonttools" in fname : # pragma: no cover
566+ # One object appears to have a misbehaving character that Sphinx
567+ # rejects on an attempted import in ~recent versions
568+ if sphinx_version < (3 , 3 , 0 ):
569+ assert inv .count == sphinx_ifile_data_count (original_ifile_data ), fname
570+ else :
571+ assert inv .count == 1 + sphinx_ifile_data_count (
572+ original_ifile_data
573+ ), fname
574+
558575 else :
559576 assert inv .count == sphinx_ifile_data_count (original_ifile_data ), fname
560577
0 commit comments