Skip to content

Commit

Permalink
Initialize testsuite count in global scope.
Browse files Browse the repository at this point in the history
Summary:
Python 3.8+ can't resolve `count` as a global if it isn't declared
in global scope.
Explicitly initialize it in global scope to fix the script.

Reviewed By: dulinriley

Differential Revision: D23400931

fbshipit-source-id: 66906d0148b4b6565e18bc388112bd8229baf203
  • Loading branch information
avp authored and facebook-github-bot committed Aug 28, 2020
1 parent 5a8a8cc commit 40dc587
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/testsuite/testsuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ def printVerbose(s):
istty = sys.stdout.isatty()
completed = Value("i", 0)
ttyWidth = os.get_terminal_size().columns if istty else 0
count = -1


def showStatus(filename):
Expand Down

0 comments on commit 40dc587

Please sign in to comment.