diff --git a/test-requirements.txt b/test-requirements.txt
index cd11a40eabd..10c8d6acb8a 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -3,7 +3,7 @@
 # process, which may cause wedges in the gate later.
 
 # Install bounded pep8/pyflakes first, then let flake8 install
-hacking>=4.1.0,<4.2.0 # Apache-2.0
+hacking>=5.0.0,<5.1.0 # Apache-2.0
 flake8-import-order # LGPLv3
 flake8-logging-format>=0.6.0 # Apache-2.0