Embedded arrays in unit tests are nearly always more readable with non-PEP8 formatting. This one wasn't ideal from the start, though; it could be improved by

``` python
xyz_array = np.array([[[0.4124, 0.21260, 0.01930]],  # red
                      [[0, 0, 0]],  # black
                      [[.9505, 1., 1.089]],  # white
                      [[.1805, .0722, .9505]],  # blue
                      [[.07719, .15438, .02573]]])  # green
```
and potentially further by aligning fields vertically. Compare with the auto-fix:
``` python
xyz_array = np.array([[[0.4124, 0.21260, 0.01930]],  # red
                        [[0, 0, 0]],  # black
        [[.9505, 1., 1.089]],  # white
                    [[.1805, .0722, .9505]],  # blue
                    [[.07719, .15438, .02573]],  # green
    ])
```