Skip to content

Commit 1e213c7

Browse files
committed
Fix some flake errors
1 parent dfd4572 commit 1e213c7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

func_adl/ObjectStream.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88
import ast
99
import os
1010

11+
1112
class ObjectStreamException(BaseException):
12-
def __init__ (self, msg):
13+
'Exception thrown by the ObjectStream object.'
14+
def __init__(self, msg):
1315
BaseException.__init__(self, msg)
1416

17+
1518
class ObjectStream:
1619
r'''
1720
Represents the AST to produce a stream of objects. The objects can be events,
@@ -176,7 +179,6 @@ def value(self, executor: Callable[[ast.AST], Any] = None) -> Any:
176179
if fail:
177180
raise ObjectStreamException('A python async event loop is already running. You must use future_value.')
178181

179-
180182
# Run our own event loop to make sure we get back the result and we are self contained
181183
# and don't stomp on anyone. Since we aren't just waiting on sockets, we will have to
182184
# have an OS difference here.

tests/test_ObjectStream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_simple_query_panda():
3131
.value(dummy_executor)
3232
assert isinstance(r, ast.AST)
3333

34-
def test_simple_query_panda():
34+
def test_simple_query_awkward():
3535
r = EventDataset("file://junk.root") \
3636
.SelectMany("lambda e: e.jets()") \
3737
.Select("lambda j: j.pT()") \

0 commit comments

Comments
 (0)