Commit c4d2db43 authored by vezeli's avatar vezeli Committed by Zsolt Dollenstein
Browse files

Change variable in README according to the PEP8 (#1002)

* Change variable in README according to the PEP8
* Change variable in tests according to the PEP8
parent 3dc461a4
Loading
Loading
Loading
Loading
+2 −2
Changes for README.md: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -178,14 +178,14 @@ great.
```py3
# in:

l = [1,
j = [1,
     2,
     3,
]

# out:

l = [1, 2, 3]
j = [1, 2, 3]
```

If not, *Black* will look at the contents of the first outer matching
+3 −3
Changes for tests/test_black.py: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -1041,10 +1041,10 @@ def test_format_file_contents(self) -> None:
        just_nl = "\n"
        with self.assertRaises(black.NothingChanged):
            black.format_file_contents(just_nl, mode=mode, fast=False)
        same = "l = [1, 2, 3]\n"
        same = "j = [1, 2, 3]\n"
        with self.assertRaises(black.NothingChanged):
            black.format_file_contents(same, mode=mode, fast=False)
        different = "l = [1,2,3]"
        different = "j = [1,2,3]"
        expected = same
        actual = black.format_file_contents(different, mode=mode, fast=False)
        self.assertEqual(expected, actual)
@@ -1072,7 +1072,7 @@ def err(msg: str, **kwargs: Any) -> None:

        with patch("black.out", out), patch("black.err", err):
            with self.assertRaises(AssertionError):
                self.assertFormatEqual("l = [1, 2, 3]", "l = [1, 2, 3,]")
                self.assertFormatEqual("j = [1, 2, 3]", "j = [1, 2, 3,]")

        out_str = "".join(out_lines)
        self.assertTrue("Expected tree:" in out_str)