[PATCH 1 of 2] byteify-strings: add test for byteify-strings.py

Yuya Nishihara yuya at tcha.org
Mon Aug 5 08:55:32 EDT 2019


On Sun, 04 Aug 2019 22:21:45 +0200, Raphaël Gomès wrote:
> # HG changeset patch
> # User Raphaël Gomès <rgomes at octobus.net>
> # Date 1564757642 -7200
> #      Fri Aug 02 16:54:02 2019 +0200
> # Node ID 6a81e45cb9f295adff1e8008a67db48b971ccc18
> # Parent  bbb002b378f33620d70d71872c869f3d67262ddf
> # EXP-Topic byteify-strings
> byteify-strings: add test for byteify-strings.py

> +  $ cat > testfile.py <<EOF
> +  > setattr(o, 'a', 1)
> +  > util.setattr(o, 'ae', 1)
> +  > util.getattr(o, 'alksjdf', 'default')
> +  > util.addattr(o, 'asdf')
> +  > util.hasattr(o, 'lksjdf', 'default')
> +  > util.safehasattr(o, 'lksjdf', 'default')
> +  > @eh.wrapfunction(func, 'lksjdf')
> +  > @eh.wrapclass(klass, 'lksjdf')

Fixed syntax errors in flight.

--- tests/test-check-module-imports.t
+++ tests/test-check-module-imports.t.err
@@ -37,3 +37,5 @@
   > -X tests/test-imports-checker.t \
   > -X tests/test-verify-repo-operations.py \
   > | sed 's-\\-/-g' | "$PYTHON" "$import_checker" -
+  tests/test-byteify-strings.t:102: SyntaxError: invalid syntax (testfile.py, line 8)
+  tests/test-byteify-strings.t:124: SyntaxError: invalid syntax (testfile.py, line 8)


More information about the Mercurial-devel mailing list