Skip to content

Commit

Permalink
Issue #6: Removed a redundant seek() call in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Antti Kaihola committed Jun 1, 2016
1 parent 59b9556 commit d9b2e0e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/zc/lockfile/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def hostname_in_lockfile():
>>> with patch('socket.gethostname', Mock(return_value='myhostname')):
... lock = zc.lockfile.LockFile("f.lock", content_template='{hostname}')
>>> f = open("f.lock")
>>> _ = f.seek(0)
>>> f.read().strip()
'myhostname'
>>> f.close()
Expand All @@ -123,7 +122,6 @@ def hostname_in_lockfile():
LockError: Couldn't lock 'f.lock'
>>> f = open("f.lock")
>>> _ = f.seek(0)
>>> f.read().strip()
'myhostname'
>>> f.close()
Expand Down

0 comments on commit d9b2e0e

Please sign in to comment.