Skip to content

Commit

Permalink
compatbility in time measurement in py3.6
Browse files Browse the repository at this point in the history
thread_time not available in python 3.6
  • Loading branch information
pubpub-zz committed Sep 3, 2023
1 parent 1831a51 commit c53e614
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
import re
from io import BytesIO
from pathlib import Path
from time import thread_time

try:
from time import thread_time
except ImportError:

def thread_time():
return 0 # disable test for python 3.6


import pytest

Expand Down

0 comments on commit c53e614

Please sign in to comment.