Skip to content

Commit

Permalink
Try to add support for Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
dansondergaard committed Dec 6, 2019
1 parent 7908cdd commit a2241bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "pypy3"
before_install:
- pip install poetry
Expand Down
6 changes: 3 additions & 3 deletions src/gwf/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ def __init__(self, msg, logger=None):
self.logger = logger or logging.getLogger(__name__)

def __enter__(self):
self.start = time.clock()
self.start = time.perf_counter()
return self

def __exit__(self, *args):
self.end = time.clock()
self.end = time.perf_counter()
self.duration = self.end - self.start
self.logger.debug(self.msg, self.duration * 1000)
self.logger.debug(self.msg, self.duration)


def ensure_dir(path):
Expand Down
2 changes: 2 additions & 0 deletions tests/plugins/test_touch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import os.path
import multiprocessing

multiprocessing.set_start_method("fork")

import pytest

from gwf.cli import main
Expand Down

0 comments on commit a2241bd

Please sign in to comment.