Fix a test.

Should have been in the previous commit.
Sync of https://github.com/pantsbuild/pants/commit/09c357944480128da70f870500e3060ab6201b33