Fix hacking test requirement

A recent change [1] updated the hacking version
in manila-tempest-plugin and made corresponding
fixes but unfortunately is python 2 incompatible.
We really only need hacking on master anyways,
where we no longer support python 2, so here we
make the requirement specific to python 3.

[1] https://review.opendev.org/#/c/716559

Closes-bug: #1870621

Change-Id: I9771cf31d50dbbfc0eb978ffb8f485c431cf2767
diff --git a/test-requirements.txt b/test-requirements.txt
index a1ec376..6a6ab89 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -2,7 +2,7 @@
 # of appearance. Changing the order has an impact on the overall integration
 # process, which may cause wedges in the gate later.
 
-hacking>=3.0,<3.1.0 # Apache-2.0
+hacking>=3.0,<3.1.0;python_version>'3' # Apache-2.0
 
 coverage!=4.4,>=4.0 # Apache-2.0
 python-subunit>=1.0.0 # Apache-2.0/BSD