Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
Fix bench on Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
davedoesdev committed Jan 1, 2023
1 parent a4e0166 commit 79d6aae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench/unitbench.py
Expand Up @@ -175,7 +175,7 @@ def run(self, reporter=None):
for b in benchmarks:

method = getattr(self, b)
arg_count = len(inspect.getargspec(method)[0])
arg_count = len(inspect.getfullargspec(method)[0])

if arg_count == 2:
results.append(self._run_benchmark(method, value))
Expand Down Expand Up @@ -299,4 +299,4 @@ def write_results(self, value, results):
output.append(str(getattr(r, self.time_type+"_mean")))
if len(output) > 0:
self.stream.write(value + "," + ",".join(output))
self.stream.write("\n")
self.stream.write("\n")

0 comments on commit 79d6aae

Please sign in to comment.