@@ -232,18 +232,23 @@ def test_enum_to_int():
232232def test_enum_overload_resolution ():
233233 """When performing overload resolution, enums should not be silently
234234 converted to floats"""
235- assert m .test_enum_overload_resolution (0.0 , 0.0 ) == 'f(float, float)'
236- assert m .test_enum_overload_resolution (0 , 0 ) == 'f(float, float)'
237- assert m .test_enum_overload_resolution (0.0 , m .ScopedEnum .Two ) == 'f(float, ScopedEnum)'
238- assert m .test_enum_overload_resolution (0 , m .ScopedEnum .Two ) == 'f(float, ScopedEnum)'
235+ assert m .test_enum_overload_resolution (0.0 , 0.0 ) == "f(float, float)"
236+ assert m .test_enum_overload_resolution (0 , 0 ) == "f(float, float)"
237+ assert (
238+ m .test_enum_overload_resolution (0.0 , m .ScopedEnum .Two ) == "f(float, ScopedEnum)"
239+ )
240+ assert (
241+ m .test_enum_overload_resolution (0 , m .ScopedEnum .Two ) == "f(float, ScopedEnum)"
242+ )
239243
240244
241245def test_enum_to_float ():
242246 """Passing an enum to a function taking a float should trigger a type error"""
243247 with pytest .raises (TypeError ) as execinfo :
244248 m .test_enum_to_float (m .ScopedBoolEnum .TRUE )
245- assert str (execinfo .value ).startswith ('TypeError: test_enum_to_float(): incompatible function arguments.' )
246-
249+ assert str (execinfo .value ).startswith (
250+ "TypeError: test_enum_to_float(): incompatible function arguments."
251+ )
247252
248253
249254def test_duplicate_enum_name ():
0 commit comments