Skip to content

Commit

Permalink
Make test compatible with older versions of pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
jadinm committed Aug 7, 2019
1 parent daaeaf5 commit 50bd367
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ipmininet/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ def net(request):


@pytest.fixture(scope="function")
def tmp():
def tmp(request):
name = tempfile.mktemp()
yield name
os.unlink(name)
request.addfinalizer(lambda: os.unlink(name))
return name


def perm(*args):
Expand Down

0 comments on commit 50bd367

Please sign in to comment.