# HG changeset patch # User FUJIWARA Katsunori # Date 2019-02-17 15:27:25 # Node ID d7ce1ea7a5f22ab076612cfd9a594d5e01998e66 # Parent 9d39671adadbb29deb2a9abbfa746a57fb6875ac 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. diff --git a/tests/test-hook.t b/tests/test-hook.t --- a/tests/test-hook.t +++ b/tests/test-hook.t @@ -855,7 +855,7 @@ preoutgoing hook can prevent outgoing ch > def printtags(ui, repo, **args): > ui.write(b'[%s]\n' % b', '.join(sorted(repo.tags()))) > - > class container: + > class container(object): > unreachable = 1 > EOF