File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 3333 package_dir = {'geoip2' : 'geoip2' },
3434 include_package_data = True ,
3535 install_requires = requirements ,
36- extras_require = {':python_version in "2.6, 2.7"' : ['ipaddr' ]},
36+ extras_require = {
37+ ':python_version=="2.6" or python_version=="2.7"' : ['ipaddr' ]},
3738 tests_require = ['httpretty>=0.6.1' ],
3839 test_suite = "tests" ,
3940 license = geoip2 .__license__ ,
Original file line number Diff line number Diff line change @@ -142,17 +142,6 @@ def test_bad_body_error(self):
142142 ):
143143 self .client .country ('1.2.3.9' )
144144
145- def test_bad_body_error (self ):
146- httpretty .register_uri (httpretty .GET ,
147- self .base_uri + 'country/' + '1.2.3.9' ,
148- body = 'bad body' ,
149- status = 400 ,
150- content_type = 'text/plain' )
151- with self .assertRaisesRegex (HTTPError ,
152- 'Received a .* with the following body'
153- ):
154- self .client .country ('1.2.3.9' )
155-
156145 def test_500_error (self ):
157146 httpretty .register_uri (httpretty .GET ,
158147 self .base_uri + 'country/' + '1.2.3.10' ,
You can’t perform that action at this time.
0 commit comments