[PATCH 4 of 5] byteify-strings: demonstrate an issue with multi-line parenthesis alignment
Raphaël Gomès
raphael.gomes at octobus.net
Fri Aug 2 11:01:25 EDT 2019
# HG changeset patch
# User Raphaël Gomès <rgomes at octobus.net>
# Date 1564757842 -7200
# Fri Aug 02 16:57:22 2019 +0200
# Node ID 1ae95b109c557785f566d307c13ded3eedc73dd9
# Parent 91a17ea759c5f0fceaae18fb558435ab379faac7
# EXP-Topic byteify-strings
byteify-strings: demonstrate an issue with multi-line parenthesis alignment
diff -r 91a17ea759c5 -r 1ae95b109c55 tests/test-byteify-strings.t
--- a/tests/test-byteify-strings.t Fri Aug 02 16:54:02 2019 +0200
+++ b/tests/test-byteify-strings.t Fri Aug 02 16:57:22 2019 +0200
@@ -193,3 +193,29 @@
$ python $BINDIR/contrib/byteify-strings.py testfile.py
obj[b'test'] = b"1234"
obj[r'test'] = u"1234"
+
+Test preserve alignment
+
+ $ cat > testfile.py <<EOF
+ > @test(
+ > 'test',
+ > [
+ > ('a', 'b'),
+ > ('a', 'b'),
+ > {
+ > 'aslkdjf',
+ > }
+ > ]
+ > )
+ > EOF
+ $ python $BINDIR/contrib/byteify-strings.py testfile.py
+ @test(
+ b'test',
+ [
+ (b'a', b'b'),
+ (b'a', b'b'),
+ {
+ b'aslkdjf',
+ }
+ ]
+ )
More information about the Mercurial-devel
mailing list