Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bbab0c5

Browse files
author
Alexis Bienvenüe
committed
Removes now useless option uid for _determinism_check
1 parent 76bec02 commit bbab0c5

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

lib/matplotlib/testing/determinism.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _determinism_save(objects='mhi', format="pdf", usetex=False):
7878
os.environ['SOURCE_DATE_EPOCH'] = sde
7979

8080

81-
def _determinism_check(objects='mhi', format="pdf", uid="", usetex=False):
81+
def _determinism_check(objects='mhi', format="pdf", usetex=False):
8282
"""
8383
Output three times the same graphs and checks that the outputs are exactly
8484
the same.
@@ -91,9 +91,6 @@ def _determinism_check(objects='mhi', format="pdf", uid="", usetex=False):
9191
default value is "mhi", so that the test includes all these objects.
9292
format : str
9393
format string. The default value is "pdf".
94-
uid : str
95-
some string to add to the filename used to store the output. Use it to
96-
allow parallel execution of two tests with the same objects parameter.
9794
"""
9895
from nose.tools import assert_equal
9996
plots = []
@@ -127,7 +124,7 @@ def _determinism_source_date_epoch(format, string, keyword=b"CreationDate"):
127124
format string, such as "pdf".
128125
string : str
129126
timestamp string for 2000-01-01 00:00 UTC.
130-
keyword : str
127+
keyword : bytes
131128
a string to look at when searching for the timestamp in the document
132129
(used in case the test fails).
133130
"""

lib/matplotlib/tests/test_backend_ps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def test_determinism_all():
198198
@needs_ghostscript
199199
def test_determinism_all_tex():
200200
"""Test for reproducible PS/tex output"""
201-
_determinism_check(format="ps", uid="_tex", usetex=True)
201+
_determinism_check(format="ps", usetex=True)
202202

203203

204204
if __name__ == '__main__':

0 commit comments

Comments
 (0)