Skip to content

Commit

Permalink
Remove pytest dependency and fix test teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
Peque committed Jan 6, 2017
1 parent 7b0c89a commit d914795
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
import string
import random

import pytest

import dill


Expand Down Expand Up @@ -59,7 +57,8 @@ def teardown_module():
def bench(strictio, fmode, skippypy):
import platform
if skippypy and platform.python_implementation() == 'PyPy':
pytest.skip('Skip for PyPy...')
# Skip for PyPy...
return

# file exists, with same contents
# read
Expand Down Expand Up @@ -479,14 +478,17 @@ def bench(strictio, fmode, skippypy):

def test_nostrictio_handlefmode():
bench(False, dill.HANDLE_FMODE, False)
teardown_module()


def test_nostrictio_filefmode():
bench(False, dill.FILE_FMODE, False)
teardown_module()


def test_nostrictio_contentsfmode():
bench(False, dill.CONTENTS_FMODE, True)
teardown_module()


#bench(True, dill.HANDLE_FMODE, False)
Expand Down

0 comments on commit d914795

Please sign in to comment.