dropbox / dropbox/dbx-unittest2pytest
Mid-argument newlines result in unexpected whitespace
Open
- Dominant language
- Python
- Stars
- 28
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Before:
``` python
self.assertEqual(a or
b)
```
After:
``` python
assert a or \
b)
```
The code still parses, so the bug is simply that the whitespace looks a bit funny. Would likely prefer
``` python
assert a or \
b
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Python examples in the issue and inspect the conversion path that produces the shown assertion formatting. Done means mid-argument newlines no longer leave unexpected indentation, while the converted code remains valid and matches the preferred layout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100