Skip to content

Commit

Permalink
tests: Fix unix-only imports for unix tests
Browse files Browse the repository at this point in the history
So it won't just fail on Windows.

Signed-off-by: Corey Minyard <[email protected]>
  • Loading branch information
cminyard committed Jul 10, 2024
1 parent 3e96ec8 commit 3f94163
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_unix_accept_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
from utils import *
import gensio
import gensios_enabled
import os
import pwd
import grp

print("Test unix accepter connect")
TestAcceptConnect(o, "unix,/tmp/gensiotest", "unix,/tmp/gensiotest2",
Expand Down Expand Up @@ -58,6 +55,9 @@ def test_permission_denied(perms):
print(" Success!")

if gensios_enabled.have_ucred == 1:
import os
import pwd
import grp
pwe = pwd.getpwuid(os.getuid())
uname = pwe.pw_name
g = grp.getgrgid(pwe.pw_gid)
Expand Down

0 comments on commit 3f94163

Please sign in to comment.