-
Notifications
You must be signed in to change notification settings - Fork 5
Performance optimizations #13
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
base: master
Are you sure you want to change the base?
Performance optimizations #13
Conversation
recordfilehandler: write to a buffered file which is kept open throughout its lifetime capturepython: switch from using inspect.stack() to sys._getframe()
|
I've tested the python_attributes tests and they are ok except for an empty file which is created for one of the tests. |
|
I fetched the branch and ran the tests (on Windows). Most of them fail for me. server-based tests generally raise an exception: |
|
I will be working at home tomorrow though, so can probably test this on Linux there then. |
|
That error looks like you're pointing out your source code checkout. You need to point "use checkout" (or -c on the command line) to the virtual environment where you've installed capturemock, also on Linux. When you install it should create capturemock.exe on Windows. No need to build anything. I ran the tests on my Ubuntu laptop now. A handful of failures - it's been quite a while since I ran these tests on Linux! A few tests have external dependencies and are fixed by installing "pyftpdlib" and "opcua" with pip, some more have filtering issues which I will fix. Leaves 2 that are failing for unknown reasons, but both are quite specific functionality that probably isn't relevant to you. |
|
Fixed the filtering issues in my above comment now. Should only be 2 red tests on clean Linux now, after installing the listed modules. |
|
That sounds promising when you put it like that. The differences in capturemock files looks ominous though. Thanks for looking into the issues and of course that you take the time to respond so quickly. |
|
I haven't tried to run your branch on Linux yet. My comments re: Linux were based on running the latest code in master. I got your latest change on Windows, only one failure for me under python_attributes now, the test "socket_module_unused". Server-based tests are still all failing in the same way as I mentioned before. |
|
Ah! Ok, I understand, it was the tests without the change that you described. I'll see if I can get the server based texts going and fix the failing ones with the change. |

recordfilehandler: write to a buffered file which is kept open throughout its lifetime
capturepython: switch from using inspect.stack() to sys._getframe()