Skip to content

Commit

Permalink
use os agnostic method to get user for tests to make compatible with …
Browse files Browse the repository at this point in the history
…windows.
  • Loading branch information
jonhadfield committed Mar 1, 2020
1 parent 376edea commit eb179e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_hosts.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
import datetime
import os
import pwd
import getpass
import sys

import pytest
Expand Down Expand Up @@ -139,7 +139,7 @@ def test_remove_existing_entry_using_address_only(tmpdir):


def get_username():
return pwd.getpwuid(os.getuid())[0]
return getpass.getuser()


def test_hosts_str(tmpdir):
Expand Down

0 comments on commit eb179e4

Please sign in to comment.