Skip to content

Commit

Permalink
tests: deregister fake data afterwards (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddrysdale committed Nov 30, 2022
1 parent 9983353 commit 71b6326
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/tests/phonenumberutiltest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3188,6 +3188,8 @@ def testMetadataRegister(self):
**{'preferred_international_prefix': u('9999'),
'register': True})
self.assertIsNone(phonenumbers.example_number_for_type('XY', PhoneNumberType.PERSONAL_NUMBER))
# Deregister "XY" so no other tests are affected.
del PhoneMetadata._region_metadata["XY"]

def testShortMetadataRegister(self):
# Python version extra tests for short metadata registration.
Expand Down

0 comments on commit 71b6326

Please sign in to comment.