Unlink in place of appending x

This commit is contained in:
Foo 2017-04-30 03:42:06 +03:00
parent b93ae8e8a2
commit 86f6943b08
1 changed files with 2 additions and 2 deletions

View File

@ -94,8 +94,8 @@ def get_expected_result(tmux_version,
def main(attempts=3):
vterm_path = os.path.join(VTERM_TEST_DIR, 'path')
socket_path = os.path.abspath('tmux-socket-{0}'.format(attempts))
while os.path.exists(socket_path):
socket_path = socket_path + 'x'
if os.path.exists(socket_path):
os.unlink(socket_path)
rows = 50
cols = 200