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

Skip to content

Commit 77e7628

Browse files
committed
Attempt at updating the pickle image test.
1 parent 65390b5 commit 77e7628

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ script:
3636
after_failure:
3737
- tar cjf result_images.tar.bz2 result_images
3838
- travis-artifacts upload --path result_images.tar.bz2
39-
- echo https://s3.amazonaws.com/matplotlib-test-results/artifacts/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}/result_images.tar.bz2
39+
- echo "The result images will only be uploaded if they are on the matplotlib/matplotlib repo - this is for security reasons to prevent arbitrary PRs echoing security details."
40+
- echo https://s3.amazonaws.com/matplotlib-test-results/artifacts/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}/result_images.tar.bz2

lib/matplotlib/tests/test_pickle.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ def test_complete():
155155
plt.subplot(3, 3, 5)
156156
plt.pcolor(data)
157157

158-
plt.subplot(3, 3, 6)
158+
ax = plt.subplot(3, 3, 6)
159+
ax.set_xlim(0, 7)
160+
ax.set_ylim(0, 9)
159161
plt.streamplot(x, y, u, v)
160162

161163
ax = plt.subplot(3, 3, 7)

0 commit comments

Comments
 (0)