Skip to content

Commit

Permalink
IGNFrance tests: fix exactly_one warning
Browse files Browse the repository at this point in the history
test/geocoders/ignfrance.py::IGNFranceTestCase::test_reverse_no_result
  <...>/geopy/test/geocoders/util.py:91: DeprecationWarning: IGNFrance.reverse: default value for `exactly_one` argument will become True in geopy 2.0. Specify `exactly_one=False` as the argument explicitly to get rid of this warning.
  • Loading branch information
KostyaEsmukov committed May 11, 2020
1 parent f458c7b commit bb79dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/geocoders/ignfrance.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def test_geocode_no_result(self):
def test_reverse_no_result(self):
self.reverse_run(
# North Atlantic Ocean
{"query": (35.173809, -37.485351)},
{"query": (35.173809, -37.485351), "exactly_one": True},
{},
expect_failure=True
)
Expand Down

0 comments on commit bb79dfc

Please sign in to comment.