Skip to content

Commit 0bfa8f1

Browse files
committed
Removed duplicate test
1 parent 632a6ce commit 0bfa8f1

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
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__,

tests/webservice_test.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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',

0 commit comments

Comments
 (0)