Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Reproducible PS/PDF output (master)#6597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
c6a4660
4e477dc
946ae45
22f71a2
ad660d7
37c28b4
2e1c773
541f97e
2a6ebc8
6ee8967
a3185e6
8f095f6
c007f49
ecbdd55
65ec88e
5b405cc
d10a21e
da55bb6
c56dae7
995173d
eef6b12
fb529da
ebff832
f6301c2
1786555
af4213e
bf7387e
2cdc577
76bec02
bbab0c5
1a5ada6
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
…environment is shared between threads).
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -114,34 +114,23 @@ def _test_source_date_epoch(format, string, keyword=b"CreationDate"): | ||
a string to look at when searching for the timestamp in the document | ||
(used in case the test fails). | ||
""" | ||
import sys | ||
from subprocess import check_call | ||
filename = 'test_SDE_on.%s' % format | ||
check_call([sys.executable, '-R', '-c', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I think that subprocess call can be replaced by function with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I think the point is to use different random number generator seeds, not to segregate the backend changes. | ||
'import matplotlib; ' | ||
'matplotlib.use(%r); ' | ||
'from matplotlib.testing.determinism ' | ||
'import _test_determinism_save;' | ||
'_test_determinism_save(%r,%r,%r)' | ||
% (format, filename, "", format)]) | ||
find_keyword = re.compile(b".*" + keyword + b".*") | ||
with open(filename, 'rb') as fd: | ||
buff = fd.read() | ||
key = find_keyword.search(buff) | ||
if key: | ||
print(key.group()) | ||
else: | ||
print("Timestamp keyword (%s) not found!" % keyword) | ||
assert string in buff | ||
os.unlink(filename) |