39fb7b5b96ea46aca94099d166106365eaf0647e,lib/matplotlib/tests/test_backend_ps.py,,test_savefig_to_stringio,#Any#Any#Any#,49
Before Change
matplotlib.rcParams.update(rcParams)
fig, ax = plt.subplots()
buffers = [
six.moves.StringIO(),
io.StringIO(),
io.BytesIO()]
if use_log:
ax.set_yscale("log")
ax.plot([1, 2], [1, 2])
ax.set_title(u"Déjà vu")
for buffer in buffers:
fig.savefig(buffer, format=format)
values = [x.getvalue() for x in buffers]
if six.PY3:
values = [
values[0].encode("ascii"),
After Change
// Remove comments from the output. This includes things that could
// change from run to run, such as the time.
s_val , b_val = [re.sub(b"%%.*?\n", b"", x) for x in [s_val, b_val]]
assert s_val == b_val.replace(b"\r\n", b"\n")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: matplotlib/matplotlib
Commit Name: 39fb7b5b96ea46aca94099d166106365eaf0647e
Time: 2018-03-08
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/tests/test_backend_ps.py
Class Name:
Method Name: test_savefig_to_stringio
Project Name: biocore/scikit-bio
Commit Name: 02d92ef958d894bb03e43b752e0b39ed7b3bec17
Time: 2014-03-19
Author: jorgecanardo@gmail.com
File Name: skbio/draw/tests/test_distributions.py
Class Name: DistributionsTests
Method Name: test_grouped_distributions_insufficient_symbols
Project Name: biocore/scikit-bio
Commit Name: 02d92ef958d894bb03e43b752e0b39ed7b3bec17
Time: 2014-03-19
Author: jorgecanardo@gmail.com
File Name: skbio/draw/tests/test_distributions.py
Class Name: DistributionsTests
Method Name: test_grouped_distributions_insufficient_colors