File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -66,14 +66,15 @@ def monkeypatch_plugin_test_packages(monkeypatch):
6666
6767
6868@pytest .fixture (scope = "function" )
69- def socket_name (request ):
69+ def socket_name (request ) -> str :
7070 return "tmuxp_test%s" % next (namer )
7171
7272
7373@pytest .fixture (scope = "function" )
74- def server (request : SubRequest , monkeypatch : pytest .MonkeyPatch ) -> Server :
75- tmux = Server ()
76- tmux .socket_name = socket_name
74+ def server (
75+ request : SubRequest , monkeypatch : pytest .MonkeyPatch , socket_name : str
76+ ) -> Server :
77+ tmux = Server (socket_name = socket_name )
7778
7879 def fin () -> None :
7980 tmux .kill_server ()
@@ -140,7 +141,7 @@ def add_doctest_fixtures(
140141 doctest_namespace : t .Dict [str , t .Any ],
141142) -> None :
142143 if isinstance (request ._pyfuncitem , DoctestItem ) and which ("tmux" ):
143- doctest_namespace ["server" ]: "Server" = request .getfixturevalue ("server" )
144+ doctest_namespace ["server" ] = request .getfixturevalue ("server" )
144145 session : "Session" = request .getfixturevalue ("session" )
145146 doctest_namespace ["session" ] = session
146147 doctest_namespace ["window" ] = session .attached_window
You can’t perform that action at this time.
0 commit comments