File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -159,9 +159,9 @@ def assert_raises_errno(errno):
159
159
try :
160
160
yield
161
161
except zmq .ZMQError as e :
162
- assert (
163
- e . errno == errno
164
- ), f"wrong error raised, expected { zmq . ZMQError ( errno ) } got { zmq . ZMQError ( e . errno ) } "
162
+ assert e . errno == errno , (
163
+ f"wrong error raised, expected { zmq . ZMQError ( errno ) } got { zmq . ZMQError ( e . errno ) } "
164
+ )
165
165
else :
166
166
pytest .fail (f"Expected { zmq .ZMQError (errno )} , no error raised" )
167
167
Original file line number Diff line number Diff line change @@ -199,9 +199,10 @@ def install():
199
199
# check if tornado's IOLoop is already initialized to something other
200
200
# than the pyzmq IOLoop instance:
201
201
assert (
202
- (not ioloop .IOLoop .initialized ())
203
- or ioloop .IOLoop .instance () is IOLoop .instance ()
204
- ), "tornado IOLoop already initialized"
202
+ not ioloop .IOLoop .initialized ()
203
+ ) or ioloop .IOLoop .instance () is IOLoop .instance (), (
204
+ "tornado IOLoop already initialized"
205
+ )
205
206
206
207
if tornado_version >= (3 ,):
207
208
# tornado 3 has an official API for registering new defaults, yay!
You can’t perform that action at this time.
0 commit comments