Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Windows) test_connections (__main__.TestProcess) is not fully reliable #657

Closed
giampaolo opened this issue Jul 15, 2015 · 1 comment
Closed

Comments

@giampaolo
Copy link
Owner

https://ci.appveyor.com/project/giampaolo/psutil/build/43/job/1rqcu8sbm1lq0v2o

======================================================================
ERROR: test_connections (__main__.TestProcess)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_psutil.py", line 459, in wrapper
    return fun(*args, **kwargs)
  File "test/test_psutil.py", line 1909, in test_connections
    tcp4_addr = eval(wait_for_file(testfile))
  File "test/test_psutil.py", line 281, in wait_for_file
    os.remove(fname)
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: '$testfile'

Only saw this on appveyor, probably because it's slower than my virtualized Win 7 box, hence this looks like a timing / sync issue.

@giampaolo
Copy link
Owner Author

Closing this out as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant