| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent aed6b41 commit b127121
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -308,12 +308,13 @@ def test_signal_fire_rejects_unknown_kwarg(): | |||
| 308 | 308 | signal = r.Signal() | |
| 309 | 309 | signal.registration_interface.register_handler(lambda **_: None) | |
| 310 | 310 | ||
| 311 | - with pytest.raises(TypeError): | ||
| 312 | - signal.fire( # type: ignore[call-arg] | ||
| 313 | - zerocnf=None, | ||
| 311 | + with pytest.raises(TypeError, match="unexpected keyword argument"): | ||
| 312 | + signal.fire( | ||
| 313 | + zeroconf=None, # type: ignore[arg-type] | ||
| 314 | 314 | service_type="_http._tcp.local.", | |
| 315 | 315 | name="x._http._tcp.local.", | |
| 316 | 316 | state_change=r.ServiceStateChange.Added, | |
| 317 | + bogus=1, # type: ignore[call-arg] | ||
| 317 | 318 | ) | |
| 318 | 319 | ||
| 319 | 320 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments