Skip to content

Commit 9015fab

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c8ad43f commit 9015fab

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/base.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
# implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
1514
from rfc3986 import exceptions as exc
1615

16+
1717
class BaseTestParsesURIs:
1818
test_class = None
1919

@@ -142,7 +142,9 @@ def test_handles_colon_but_no_port(self, uri_with_colon_but_no_port):
142142
assert isinstance(e, exc.InvalidAuthority)
143143
else:
144144
if uri.port is not None:
145-
raise AssertionError("No error thrown from URI with colon but no port")
145+
raise AssertionError(
146+
"No error thrown from URI with colon but no port"
147+
)
146148

147149
def test_handles_port_but_no_colon(self, uri_with_port_but_no_colon):
148150
try:
@@ -151,7 +153,9 @@ def test_handles_port_but_no_colon(self, uri_with_port_but_no_colon):
151153
assert isinstance(e, exc.InvalidAuthority)
152154
else:
153155
if uri.port is not None:
154-
raise AssertionError("No error thrown from URI with port but no colon")
156+
raise AssertionError(
157+
"No error thrown from URI with port but no colon"
158+
)
155159

156160

157161
class BaseTestUnsplits:

0 commit comments

Comments
 (0)