File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11
11
# implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
-
15
14
from rfc3986 import exceptions as exc
16
15
16
+
17
17
class BaseTestParsesURIs :
18
18
test_class = None
19
19
@@ -142,7 +142,9 @@ def test_handles_colon_but_no_port(self, uri_with_colon_but_no_port):
142
142
assert isinstance (e , exc .InvalidAuthority )
143
143
else :
144
144
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
+ )
146
148
147
149
def test_handles_port_but_no_colon (self , uri_with_port_but_no_colon ):
148
150
try :
@@ -151,7 +153,9 @@ def test_handles_port_but_no_colon(self, uri_with_port_but_no_colon):
151
153
assert isinstance (e , exc .InvalidAuthority )
152
154
else :
153
155
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
+ )
155
159
156
160
157
161
class BaseTestUnsplits :
You can’t perform that action at this time.
0 commit comments