Skip to content

Commit df30f92

Browse files
committed
Remove checks for obsolete methods
This is not how you define your callbacks, so this test isn't testing for anything useful.
1 parent 50c0569 commit df30f92

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

test/test_remote.py

-15
Original file line numberDiff line numberDiff line change
@@ -188,21 +188,6 @@ def test_remote_refcount(self):
188188
end = sys.getrefcount(self.repo)
189189
self.assertEqual(start, end)
190190

191-
def test_remote_callback_typecheck(self):
192-
remote = self.repo.remotes[0]
193-
remote.progress = 5
194-
self.assertRaises(TypeError, remote, 'fetch')
195-
196-
remote = self.repo.remotes[0]
197-
remote.transfer_progress = 5
198-
self.assertRaises(TypeError, remote, 'fetch')
199-
200-
remote = self.repo.remotes[0]
201-
remote.update_tips = 5
202-
self.assertRaises(TypeError, remote, 'fetch')
203-
204-
205-
206191
class EmptyRepositoryTest(utils.EmptyRepoTestCase):
207192
def test_fetch(self):
208193
remote = self.repo.remotes[0]

0 commit comments

Comments
 (0)