Skip to content

Commit

Permalink
Ensure surrogates are left unchanged by dynamic_quotes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Jul 2, 2021
1 parent d4f985c commit 331ef3b
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions tests/test_integration_/test_cli._py_
Expand Up @@ -8,3 +8,4 @@ class F:


print("hello world")
assert t.uname == "\udce4\udcf6\udcfc"
4 changes: 3 additions & 1 deletion tests/test_integration_/test_cli.yml
Expand Up @@ -4,7 +4,7 @@ out:
- Reformatting code.py
- "--- code.py\t(original)"
- "+++ code.py\t(reformatted)"
- '@@ -1,11 +1,11 @@'
- '@@ -1,12 +1,12 @@'
- ' class F:'
- "-\tfrom collections import ("
- -Iterable,
Expand All @@ -18,8 +18,10 @@ out:
- " \t\tpass"
- ''
- -print('hello world')
- -assert t.uname == '\udce4\udcf6\udcfc'
- ''
- +print("hello world")
- +assert t.uname == "\udce4\udcf6\udcfc"
- +
- ''
- ''
1 change: 1 addition & 0 deletions tests/test_integration_/test_cli_verbose_verbose._py_
Expand Up @@ -8,3 +8,4 @@ class F:


print("hello world")
assert t.uname == "\udce4\udcf6\udcfc"
1 change: 1 addition & 0 deletions tests/test_integration_/test_integration._py_
Expand Up @@ -8,3 +8,4 @@ class F:


print("hello world")
assert t.uname == "\udce4\udcf6\udcfc"
4 changes: 3 additions & 1 deletion tests/test_integration_/test_integration.yml
Expand Up @@ -3,7 +3,7 @@ err:
out:
- "--- .../test_integration0/code.py\t(original)"
- "+++ .../test_integration0/code.py\t(reformatted)"
- '@@ -1,11 +1,11 @@'
- '@@ -1,12 +1,12 @@'
- ' class F:'
- "-\tfrom collections import ("
- -Iterable,
Expand All @@ -17,8 +17,10 @@ out:
- " \t\tpass"
- ''
- -print('hello world')
- -assert t.uname == '\udce4\udcf6\udcfc'
- ''
- +print("hello world")
- +assert t.uname == "\udce4\udcf6\udcfc"
- +
- ''
- ''
1 change: 1 addition & 0 deletions tests/test_integration_/test_integration_pyproject._py_
Expand Up @@ -8,3 +8,4 @@ class F:


print("hello world")
assert t.uname == "\udce4\udcf6\udcfc"
4 changes: 3 additions & 1 deletion tests/test_integration_/test_integration_pyproject.yml
Expand Up @@ -3,7 +3,7 @@ err:
out:
- "--- .../test_integration_pyproject0/code.py\t(original)"
- "+++ .../test_integration_pyproject0/code.py\t(reformatted)"
- '@@ -1,11 +1,11 @@'
- '@@ -1,12 +1,12 @@'
- ' class F:'
- "-\tfrom collections import ("
- -Iterable,
Expand All @@ -17,8 +17,10 @@ out:
- " \t\tpass"
- ''
- -print('hello world')
- -assert t.uname == '\udce4\udcf6\udcfc'
- ''
- +print("hello world")
- +assert t.uname == "\udce4\udcf6\udcfc"
- +
- ''
- ''
1 change: 1 addition & 0 deletions tests/test_integration_/test_reformatter_class._py_
Expand Up @@ -8,3 +8,4 @@ class F:


print("hello world")
assert t.uname == "\udce4\udcf6\udcfc"

0 comments on commit 331ef3b

Please sign in to comment.