changeset 41733:d7ce1ea7a5f2

tests: define class in modern style to avoid check-code.py error This is a part of preparation to apply checking with check-code.py on code fragments embedded in *.t test scripts.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Mon, 18 Feb 2019 00:27:25 +0900
parents 9d39671adadb
children 6462bbb91b53
files tests/test-hook.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-hook.t	Mon Feb 18 00:27:25 2019 +0900
+++ b/tests/test-hook.t	Mon Feb 18 00:27:25 2019 +0900
@@ -855,7 +855,7 @@
   > def printtags(ui, repo, **args):
   >     ui.write(b'[%s]\n' % b', '.join(sorted(repo.tags())))
   > 
-  > class container:
+  > class container(object):
   >     unreachable = 1
   > EOF