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

login
register
mail settings
Submitter Yuya Nishihara
Date Aug. 5, 2019, 12:55 p.m.
Message ID <20190805215532.cd4309df704a4ebf9f46e0ce@tcha.org>
Download mbox | patch
Permalink /patch/41150/
State New
Headers show

Comments

Yuya Nishihara - Aug. 5, 2019, 12:55 p.m.
On Sun, 04 Aug 2019 22:21:45 +0200, Raphaël Gomès wrote:
> # HG changeset patch
> # User Raphaël Gomès <rgomes@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.

Patch

--- 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)