[Git][ghc/ghc][master] Testsuite: fix deprecation warning

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Wed Feb 19 10:27:52 UTC 2025



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
a3f0a506 by Sylvain Henry at 2025-02-19T05:27:30-05:00
Testsuite: fix deprecation warning

> DeprecationWarning: 'count' is passed as positional argument

- - - - -


1 changed file:

- testsuite/driver/testlib.py


Changes:

=====================================
testsuite/driver/testlib.py
=====================================
@@ -1733,7 +1733,7 @@ async def do_test(name: TestName,
         dst_makefile = in_testdir('Makefile')
         if src_makefile.exists():
             makefile = src_makefile.read_text(encoding='UTF-8')
-            makefile = re.sub('TOP=.*', 'TOP=%s' % config.top, makefile, 1)
+            makefile = re.sub('TOP=.*', 'TOP=%s' % config.top, makefile, count=1)
             dst_makefile.write_text(makefile, encoding='UTF-8')
 
     if opts.pre_cmd:



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a3f0a506040376a4910f799494bc23a56e1b6bdd

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a3f0a506040376a4910f799494bc23a56e1b6bdd
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20250219/c3aa24be/attachment-0001.html>


More information about the ghc-commits mailing list