The tests included with this repository fail execution via an io.UnsupportedOperation: fileno
Expected Behavior
The expected behavior is that one should be able to provide the input and output streams as StringIO objects and run the Code. The tests rely on the ability to load configuration files/ input files via stdin at runtime.
Current Behavior
The current behavior is the tests fail with the following same result:

Possible Solution
The solution could be to change the assumption that r, w, e = select.select([sys.stdin], [], [], self.READ_TIMEOUT) requires the file descriptor type which is provided by fileno.
Steps to Reproduce
- clone the repository
- cd cortexutils
- python -m unittest discover
- Profit?? ;)
Context (Environment)
The reason this is affecting me is that I am trying to build tests for responders/analyzers that are built on top of this project. This is stopping those tests from running in similar fashion to the tests included in this repository.
The tests included with this repository fail execution via an io.UnsupportedOperation: fileno
Expected Behavior
The expected behavior is that one should be able to provide the input and output streams as StringIO objects and run the Code. The tests rely on the ability to load configuration files/ input files via stdin at runtime.
Current Behavior
The current behavior is the tests fail with the following same result:

Possible Solution
The solution could be to change the assumption that r, w, e = select.select([sys.stdin], [], [], self.READ_TIMEOUT) requires the file descriptor type which is provided by fileno.
Steps to Reproduce
Context (Environment)
The reason this is affecting me is that I am trying to build tests for responders/analyzers that are built on top of this project. This is stopping those tests from running in similar fashion to the tests included in this repository.