comparison tests/test-hook.t @ 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 f8443db3032e
children 94faa2e84094
comparison
equal deleted inserted replaced
41732:9d39671adadb 41733:d7ce1ea7a5f2
853 > ui.note(b'verbose output from hook\n') 853 > ui.note(b'verbose output from hook\n')
854 > 854 >
855 > def printtags(ui, repo, **args): 855 > def printtags(ui, repo, **args):
856 > ui.write(b'[%s]\n' % b', '.join(sorted(repo.tags()))) 856 > ui.write(b'[%s]\n' % b', '.join(sorted(repo.tags())))
857 > 857 >
858 > class container: 858 > class container(object):
859 > unreachable = 1 859 > unreachable = 1
860 > EOF 860 > EOF
861 861
862 $ cat > syntaxerror.py << NO_CHECK_EOF 862 $ cat > syntaxerror.py << NO_CHECK_EOF
863 > (foo 863 > (foo