Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 99422f0

Browse files
will-ricebrentspell
authored andcommitted
Remove setting the input source to None in cleanup.
We still want to call clean up in `run`, but if we set the input source to `None` the pipeline can't be started again.
1 parent ef6d782 commit 99422f0

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

spokestack/pipeline.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ def cleanup(self) -> None:
8383

8484
self._stages.clear()
8585
self._input_source.close()
86-
self._input_source = None
8786
self._context.reset()
8887

8988
def event(self, function: Any = None, name: Union[str, None] = None) -> Any:

tests/test_pipeline.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ def test_cleanup():
7070

7171
pipeline.cleanup()
7272
assert not pipeline._stages
73-
assert not pipeline._input_source
7473

7574

7675
def test_events():

0 commit comments

Comments
 (0)