Skip to content

Commit

Permalink
Issue #6: Fixed PyPy 3 compatibility in the test suite by adding a de…
Browse files Browse the repository at this point in the history
…vice_encoding() function to the mock os library
  • Loading branch information
Antti Kaihola committed Mar 14, 2016
1 parent f9beb57 commit a6bf701
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/zc/lockfile/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def getpid(self):
def gethostname(self):
return 'myhostname'

def device_encoding(self, fd):
"""In PyPy3, os.device_encoding() is called when acquiring a lock"""
return None

os_socket_mock = OsSocketMock()


Expand Down

0 comments on commit a6bf701

Please sign in to comment.