diff tests/test-remotefilelog-bundle2-legacy.t @ 50928:d718eddf01d9

safehasattr: drop usage in favor of hasattr The two functions should now be equivalent at least in their usage in core.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 31 Aug 2023 23:56:15 +0200
parents 68b7faeb6ef3
children
line wrap: on
line diff
--- a/tests/test-remotefilelog-bundle2-legacy.t	Thu Dec 08 15:33:19 2022 +0100
+++ b/tests/test-remotefilelog-bundle2-legacy.t	Thu Aug 31 23:56:15 2023 +0200
@@ -11,7 +11,7 @@
   > command = registrar.command(cmdtable)
   > @command('testcg2', norepo=True)
   > def testcg2(ui):
-  >     if not util.safehasattr(changegroup, 'cg2packer'):
+  >     if not hasattr(changegroup, 'cg2packer'):
   >         sys.exit(80)
   > EOF
   $ cat >> $HGRCPATH << EOF