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 1111# implied.
1212# See the License for the specific language governing permissions and
1313# limitations under the License.
14-
1514from rfc3986 import exceptions as exc
1615
16+
1717class 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
157161class BaseTestUnsplits :
You can’t perform that action at this time.
0 commit comments