Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Latest commit

 

History

History
1119 lines (852 loc) · 36.1 KB

20222.md

File metadata and controls

1119 lines (852 loc) · 36.1 KB

Issue 20222: One-off doctest failures in a fresh install because of matplotlib

archive/issues_019985.json:

{
    "assignees": [],
    "body": "<div id=\"comment:0\"></div>\n\nWhen running Sage doctests for the very first time (with an empty `DOT_SAGE` directory):\n\n```\nsage -t --long src/sage/geometry/fan.py\n**********************************************************************\nFile \"src/sage/geometry/fan.py\", line 2887, in sage.geometry.fan.?.plot\nFailed example:\n    fan.plot()\nExpected:\n    Graphics object consisting of 31 graphics primitives\nGot:\n    doctest:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.\n    Graphics object consisting of 31 graphics primitives\n**********************************************************************\n1 item had failures:\n   1 of   3 in sage.geometry.fan.?.plot\n    [492 tests, 1 failure, 9.60 s]\nsage -t --long src/sage/categories/coxeter_groups.py\n**********************************************************************\nFile \"src/sage/categories/coxeter_groups.py\", line 1681, in sage.categories.coxeter_groups.CoxeterGroups.ElementMethods.bruhat_lower_cov\ners\nFailed example:\n    P.show()\nExpected nothing\nGot:\n    doctest:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.\n**********************************************************************\n1 item had failures:\n   1 of  15 in sage.categories.coxeter_groups.CoxeterGroups.ElementMethods.bruhat_lower_covers\n    [461 tests, 1 failure, 18.31 s]\n```\n\nOf course, the failures go away when the tests are rerun. Any way we can avoid these failures?\n\nCC:  @jdemeyer @embray @nthiery\n\nComponent: **build**\n\nAuthor: **Jeroen Demeyer**\n\nBranch: **[`7169df8`](https://github.com/sagemath/sagetrac-mirror/commit/7169df8578eeb59a0de4b649a632f3db2b7c0a4a)**\n\nReviewer: **Erik Bray, Julian R\u00fcth**\n\n_Issue created by migration from https://trac.sagemath.org/ticket/20222_\n\n",
    "closed_at": "2018-01-15T22:29:37Z",
    "created_at": "2016-03-16T13:43:45Z",
    "labels": [
        "https://github.com/sagemath/sage/labels/c%3A%20build",
        "https://github.com/sagemath/sage/labels/p%3A%20major%20/%203",
        "https://github.com/sagemath/sage/labels/bug"
    ],
    "milestone": "https://github.com/sagemath/sage/milestones/sage-8.0",
    "reactions": [],
    "repository": "https://github.com/sagemath/sage",
    "title": "One-off doctest failures in a fresh install because of matplotlib",
    "type": "issue",
    "updated_at": "2018-05-16T18:29:15Z",
    "url": "https://github.com/sagemath/sage/issues/20222",
    "user": "https://github.com/defeo"
}

When running Sage doctests for the very first time (with an empty DOT_SAGE directory):

sage -t --long src/sage/geometry/fan.py
**********************************************************************
File "src/sage/geometry/fan.py", line 2887, in sage.geometry.fan.?.plot
Failed example:
    fan.plot()
Expected:
    Graphics object consisting of 31 graphics primitives
Got:
    doctest:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
    Graphics object consisting of 31 graphics primitives
**********************************************************************
1 item had failures:
   1 of   3 in sage.geometry.fan.?.plot
    [492 tests, 1 failure, 9.60 s]
sage -t --long src/sage/categories/coxeter_groups.py
**********************************************************************
File "src/sage/categories/coxeter_groups.py", line 1681, in sage.categories.coxeter_groups.CoxeterGroups.ElementMethods.bruhat_lower_cov
ers
Failed example:
    P.show()
Expected nothing
Got:
    doctest:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
**********************************************************************
1 item had failures:
   1 of  15 in sage.categories.coxeter_groups.CoxeterGroups.ElementMethods.bruhat_lower_covers
    [461 tests, 1 failure, 18.31 s]

Of course, the failures go away when the tests are rerun. Any way we can avoid these failures?

CC: @jdemeyer @embray @nthiery

Component: build

Author: Jeroen Demeyer

Branch: 7169df8

Reviewer: Erik Bray, Julian Rüth

Issue created by migration from https://trac.sagemath.org/ticket/20222


archive/issue_events_282967.json:

{
    "actor": "https://github.com/defeo",
    "created_at": "2016-03-16T13:43:45Z",
    "event": "milestoned",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "milestone_number": null,
    "milestone_title": "sage-7.1",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282967"
}

archive/issue_events_282968.json:

{
    "actor": "https://github.com/defeo",
    "created_at": "2016-03-16T13:43:45Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/c%3A%20doctest%20framework",
    "label_color": "0000b0",
    "label_name": "c: doctest framework",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282968"
}

archive/issue_events_282969.json:

{
    "actor": "https://github.com/defeo",
    "created_at": "2016-03-16T13:43:45Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/p%3A%20minor%20/%204",
    "label_color": "ffe799",
    "label_name": "p: minor / 4",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282969"
}

archive/issue_events_282970.json:

{
    "actor": "https://github.com/defeo",
    "created_at": "2016-03-16T13:43:45Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/bug",
    "label_color": "d73a4a",
    "label_name": "bug",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282970"
}

archive/issue_comments_290926.json:

{
    "body": "<div id=\"comment:1\" align=\"right\">comment:1</div>\n\nRunning tests inside a fresh docker container could be a good way to check for problems like this.",
    "created_at": "2016-03-16T13:52:46Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290926",
    "user": "https://github.com/jdemeyer"
}
comment:1

Running tests inside a fresh docker container could be a good way to check for problems like this.


archive/issue_comments_290927.json:

{
    "body": "<div id=\"comment:2\" align=\"right\">comment:2</div>\n\nStill don't have automated builds of the sagemath-develop container running yet, but hope to have that sooner or later.",
    "created_at": "2016-03-16T14:15:20Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290927",
    "user": "https://github.com/embray"
}
comment:2

Still don't have automated builds of the sagemath-develop container running yet, but hope to have that sooner or later.


archive/issue_events_282971.json:

{
    "actor": "https://github.com/jdemeyer",
    "created_at": "2016-10-25T07:02:56Z",
    "event": "unlabeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/c%3A%20doctest%20framework",
    "label_color": "0000b0",
    "label_name": "c: doctest framework",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282971"
}

archive/issue_events_282972.json:

{
    "actor": "https://github.com/jdemeyer",
    "created_at": "2016-10-25T07:02:56Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/c%3A%20build",
    "label_color": "0000b0",
    "label_name": "c: build",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282972"
}

archive/issue_events_282973.json:

{
    "actor": "https://github.com/jdemeyer",
    "created_at": "2016-10-25T07:02:56Z",
    "event": "unlabeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/p%3A%20minor%20/%204",
    "label_color": "ffe799",
    "label_name": "p: minor / 4",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282973"
}

archive/issue_events_282974.json:

{
    "actor": "https://github.com/jdemeyer",
    "created_at": "2016-10-25T07:02:56Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/p%3A%20major%20/%203",
    "label_color": "ffbb00",
    "label_name": "p: major / 3",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282974"
}

archive/issue_comments_290928.json:

{
    "body": "<div id=\"comment:4\" align=\"right\">comment:4</div>\n\nCan't we simply ignore these warnings?",
    "created_at": "2016-10-25T07:03:37Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290928",
    "user": "https://github.com/jdemeyer"
}
comment:4

Can't we simply ignore these warnings?


archive/issue_comments_290929.json:

{
    "body": "<div id=\"comment:5\" align=\"right\">comment:5</div>\n\nReplying to [@jdemeyer](#comment%3A4):\n> Can't we simply ignore these warnings?\n\nWhat's the standard way to ignore warnings in doctests, again?",
    "created_at": "2016-10-25T09:40:10Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290929",
    "user": "https://github.com/defeo"
}
comment:5

Replying to @jdemeyer:

Can't we simply ignore these warnings?

What's the standard way to ignore warnings in doctests, again?


archive/issue_comments_290930.json:

{
    "body": "<div id=\"comment:6\" align=\"right\">comment:6</div>\n\nI wonder if the initial sage startup shouldn't also take care of this.",
    "created_at": "2016-11-07T13:06:35Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290930",
    "user": "https://github.com/embray"
}
comment:6

I wonder if the initial sage startup shouldn't also take care of this.


archive/issue_comments_290931.json:

{
    "body": "<div id=\"comment:7\" align=\"right\">comment:7</div>\n\nReplying to [@embray](#comment%3A6):\n> I wonder if the initial sage startup shouldn't also take care of this.\n\nThat's not really possible because the relevant matplotlib files are *user* files (inside `$DOT_SAGE`, which is typically in `$HOME`), not *system* files.",
    "created_at": "2016-11-07T13:23:13Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290931",
    "user": "https://github.com/jdemeyer"
}
comment:7

Replying to @embray:

I wonder if the initial sage startup shouldn't also take care of this.

That's not really possible because the relevant matplotlib files are user files (inside $DOT_SAGE, which is typically in $HOME), not system files.


archive/issue_comments_290932.json:

{
    "body": "<div id=\"comment:8\" align=\"right\">comment:8</div>\n\nI think I see what you're saying--I'm so used at this point to running my own copy of sage that it's warped my viewpoint in ugly ways :)\n\nBut isn't there some initial creation of user files in `$DOT_SAGE` the first time a user runs Sage?  That's what I meant.",
    "created_at": "2016-11-07T14:36:39Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290932",
    "user": "https://github.com/embray"
}
comment:8

I think I see what you're saying--I'm so used at this point to running my own copy of sage that it's warped my viewpoint in ugly ways :)

But isn't there some initial creation of user files in $DOT_SAGE the first time a user runs Sage? That's what I meant.


archive/issue_comments_290933.json:

{
    "body": "<div id=\"comment:9\" align=\"right\">comment:9</div>\n\nUpstream issue: https://github.com/matplotlib/matplotlib/issues/5836",
    "created_at": "2017-01-01T03:15:59Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290933",
    "user": "https://github.com/mkoeppe"
}
comment:9

Upstream issue: matplotlib/matplotlib#5836


archive/issue_comments_290934.json:

{
    "body": "Branch: **[u/jdemeyer/one_off_doctest_failures_in_a_fresh_install](https://github.com/sagemath/sagetrac-mirror/tree/u/jdemeyer/one_off_doctest_failures_in_a_fresh_install)**",
    "created_at": "2017-06-14T09:35:06Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290934",
    "user": "https://github.com/jdemeyer"
}

Branch: u/jdemeyer/one_off_doctest_failures_in_a_fresh_install


archive/issue_comments_290935.json:

{
    "body": "<div id=\"comment:11\"></div>\n\nNew commits:\n<table><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/e2083fc285507f658ee1babe515118a0208977fd\"><code>e2083fc</code></a></td><td><code>Build Matplotlib font cache before running doctests</code></td></tr></table>\n",
    "created_at": "2017-06-14T09:38:57Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290935",
    "user": "https://github.com/jdemeyer"
}

New commits:

e2083fcBuild Matplotlib font cache before running doctests

archive/issue_comments_290936.json:

{
    "body": "Author: **Jeroen Demeyer**",
    "created_at": "2017-06-14T09:38:57Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290936",
    "user": "https://github.com/jdemeyer"
}

Author: Jeroen Demeyer


archive/issue_comments_290937.json:

{
    "body": "Commit: **[`e2083fc`](https://github.com/sagemath/sagetrac-mirror/commit/e2083fc285507f658ee1babe515118a0208977fd)**",
    "created_at": "2017-06-14T09:38:57Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290937",
    "user": "https://github.com/jdemeyer"
}

Commit: e2083fc


archive/issue_events_282975.json:

{
    "actor": "https://github.com/jdemeyer",
    "created_at": "2017-06-14T09:38:57Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/needs%20review",
    "label_color": "7fff00",
    "label_name": "needs review",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282975"
}

archive/issue_events_282976.json:

{
    "actor": "https://github.com/embray",
    "created_at": "2017-06-14T09:55:05Z",
    "event": "demilestoned",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "milestone_number": null,
    "milestone_title": "sage-7.1",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282976"
}

archive/issue_events_282977.json:

{
    "actor": "https://github.com/embray",
    "created_at": "2017-06-14T09:55:05Z",
    "event": "milestoned",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "milestone_number": null,
    "milestone_title": "sage-8.0",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282977"
}

archive/issue_events_282978.json:

{
    "actor": "https://github.com/embray",
    "created_at": "2017-06-14T09:55:05Z",
    "event": "unlabeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/needs%20review",
    "label_color": "7fff00",
    "label_name": "needs review",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282978"
}

archive/issue_events_282979.json:

{
    "actor": "https://github.com/embray",
    "created_at": "2017-06-14T09:55:05Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/positive%20review",
    "label_color": "dfffc0",
    "label_name": "positive review",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282979"
}

archive/issue_comments_290938.json:

{
    "body": "<div id=\"comment:12\" align=\"right\">comment:12</div>\n\nHuh, I thought this was already fixed.  I haven't run into it in a while.",
    "created_at": "2017-06-14T09:55:05Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290938",
    "user": "https://github.com/embray"
}
comment:12

Huh, I thought this was already fixed. I haven't run into it in a while.


archive/issue_comments_290939.json:

{
    "body": "Reviewer: **Erik Bray**",
    "created_at": "2017-06-14T11:54:35Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290939",
    "user": "https://github.com/jdemeyer"
}

Reviewer: Erik Bray


archive/issue_events_282980.json:

{
    "actor": "https://github.com/vbraun",
    "created_at": "2017-06-14T22:44:56Z",
    "event": "unlabeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/positive%20review",
    "label_color": "dfffc0",
    "label_name": "positive review",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282980"
}

archive/issue_events_282981.json:

{
    "actor": "https://github.com/vbraun",
    "created_at": "2017-06-14T22:44:56Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/needs%20work",
    "label_color": "ffff00",
    "label_name": "needs work",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282981"
}

archive/issue_comments_290940.json:

{
    "body": "<div id=\"comment:14\" align=\"right\">comment:14</div>\n\n\n```\nsage -t --long --warn-long 81.6 src/sage/tests/startup.py\n**********************************************************************\nFile \"src/sage/tests/startup.py\", line 6, in sage.tests.startup\nFailed example:\n    'numpy' in sys.modules\nExpected:\n    False\nGot:\n    True\n**********************************************************************\nFile \"src/sage/tests/startup.py\", line 8, in sage.tests.startup\nFailed example:\n    'pyparsing' in sys.modules\nExpected:\n    False\nGot:\n    True\n**********************************************************************\n1 item had failures:\n   2 of   7 in sage.tests.startup\n    [6 tests, 2 failures, 1.47 s]\n```",
    "created_at": "2017-06-14T22:44:56Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290940",
    "user": "https://github.com/vbraun"
}
comment:14
sage -t --long --warn-long 81.6 src/sage/tests/startup.py
**********************************************************************
File "src/sage/tests/startup.py", line 6, in sage.tests.startup
Failed example:
    'numpy' in sys.modules
Expected:
    False
Got:
    True
**********************************************************************
File "src/sage/tests/startup.py", line 8, in sage.tests.startup
Failed example:
    'pyparsing' in sys.modules
Expected:
    False
Got:
    True
**********************************************************************
1 item had failures:
   2 of   7 in sage.tests.startup
    [6 tests, 2 failures, 1.47 s]

archive/issue_events_282982.json:

{
    "actor": "https://github.com/jdemeyer",
    "created_at": "2017-06-19T08:31:57Z",
    "event": "renamed",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "title_is": "One-off doctest failures in a fresh install because of matplotlib",
    "title_was": "One-off doctest failures in a fresh install",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282982"
}

archive/issue_comments_290941.json:

{
    "body": "Changed commit from **[`e2083fc`](https://github.com/sagemath/sagetrac-mirror/commit/e2083fc285507f658ee1babe515118a0208977fd)** to **[`dd1dfe4`](https://github.com/sagemath/sagetrac-mirror/commit/dd1dfe4b8b729499c09ef0bb301e13d25c74297f)**",
    "created_at": "2017-06-19T09:18:24Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290941",
    "user": "https://github.com/sagetrac-git"
}

Changed commit from e2083fc to dd1dfe4


archive/issue_comments_290942.json:

{
    "body": "<div id=\"comment:16\"></div>\n\nBranch pushed to git repo; I updated commit sha1. This was a forced push. New commits:\n<table><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/dd1dfe4b8b729499c09ef0bb301e13d25c74297f\"><code>dd1dfe4</code></a></td><td><code>Build Matplotlib font cache before running doctests</code></td></tr></table>\n",
    "created_at": "2017-06-19T09:18:24Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290942",
    "user": "https://github.com/sagetrac-git"
}

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

dd1dfe4Build Matplotlib font cache before running doctests

archive/issue_comments_290943.json:

{
    "body": "<div id=\"comment:17\"></div>\n\nBranch pushed to git repo; I updated commit sha1. This was a forced push. New commits:\n<table><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/59e671e868764eba3a4bbd62977460f069ce99b2\"><code>59e671e</code></a></td><td><code>Build Matplotlib font cache before running doctests</code></td></tr></table>\n",
    "created_at": "2017-06-19T09:20:56Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290943",
    "user": "https://github.com/sagetrac-git"
}

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

59e671eBuild Matplotlib font cache before running doctests

archive/issue_comments_290944.json:

{
    "body": "Changed commit from **[`dd1dfe4`](https://github.com/sagemath/sagetrac-mirror/commit/dd1dfe4b8b729499c09ef0bb301e13d25c74297f)** to **[`59e671e`](https://github.com/sagemath/sagetrac-mirror/commit/59e671e868764eba3a4bbd62977460f069ce99b2)**",
    "created_at": "2017-06-19T09:20:56Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290944",
    "user": "https://github.com/sagetrac-git"
}

Changed commit from dd1dfe4 to 59e671e


archive/issue_comments_290945.json:

{
    "body": "<div id=\"comment:18\" align=\"right\">comment:18</div>\n\nNew version which imports matplotlib in a forked child process.",
    "created_at": "2017-06-19T09:22:20Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290945",
    "user": "https://github.com/jdemeyer"
}
comment:18

New version which imports matplotlib in a forked child process.


archive/issue_comments_290946.json:

{
    "body": "Description changed:\n``````diff\n--- \n+++ \n@@ -1,4 +1,4 @@\n-I'm getting some irrelevant doctests failures (on branch develop), due to some Matplotlib first time artifacts.\n+When running Sage doctests for the very first time (with an empty `DOT_SAGE` directory):\n \n ```\n sage -t --long src/sage/geometry/fan.py\n``````\n",
    "created_at": "2017-06-19T09:22:20Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290946",
    "user": "https://github.com/jdemeyer"
}

Description changed:

--- 
+++ 
@@ -1,4 +1,4 @@
-I'm getting some irrelevant doctests failures (on branch develop), due to some Matplotlib first time artifacts.
+When running Sage doctests for the very first time (with an empty `DOT_SAGE` directory):
 
 ```
 sage -t --long src/sage/geometry/fan.py

archive/issue_events_282983.json:

{
    "actor": "https://github.com/jdemeyer",
    "created_at": "2017-06-19T09:22:20Z",
    "event": "unlabeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/needs%20work",
    "label_color": "ffff00",
    "label_name": "needs work",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282983"
}

archive/issue_events_282984.json:

{
    "actor": "https://github.com/jdemeyer",
    "created_at": "2017-06-19T09:22:20Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/needs%20review",
    "label_color": "7fff00",
    "label_name": "needs review",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282984"
}

archive/issue_comments_290947.json:

{
    "body": "<div id=\"comment:19\"></div>\n\nBranch pushed to git repo; I updated commit sha1. This was a forced push. New commits:\n<table><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/7169df8578eeb59a0de4b649a632f3db2b7c0a4a\"><code>7169df8</code></a></td><td><code>Build Matplotlib font cache before running doctests</code></td></tr></table>\n",
    "created_at": "2017-10-25T09:28:30Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290947",
    "user": "https://github.com/sagetrac-git"
}

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

7169df8Build Matplotlib font cache before running doctests

archive/issue_comments_290948.json:

{
    "body": "Changed commit from **[`59e671e`](https://github.com/sagemath/sagetrac-mirror/commit/59e671e868764eba3a4bbd62977460f069ce99b2)** to **[`7169df8`](https://github.com/sagemath/sagetrac-mirror/commit/7169df8578eeb59a0de4b649a632f3db2b7c0a4a)**",
    "created_at": "2017-10-25T09:28:30Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290948",
    "user": "https://github.com/sagetrac-git"
}

Changed commit from 59e671e to 7169df8


archive/issue_comments_290949.json:

{
    "body": "Changed reviewer from **Erik Bray** to **Erik Bray, Julian R\u00fcth**",
    "created_at": "2018-01-14T01:56:10Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290949",
    "user": "https://github.com/saraedum"
}

Changed reviewer from Erik Bray to Erik Bray, Julian Rüth


archive/issue_events_282985.json:

{
    "actor": "https://github.com/saraedum",
    "created_at": "2018-01-14T01:56:10Z",
    "event": "unlabeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/needs%20review",
    "label_color": "7fff00",
    "label_name": "needs review",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282985"
}

archive/issue_events_282986.json:

{
    "actor": "https://github.com/saraedum",
    "created_at": "2018-01-14T01:56:10Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/positive%20review",
    "label_color": "dfffc0",
    "label_name": "positive review",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282986"
}

archive/issue_events_282987.json:

{
    "actor": "https://github.com/vbraun",
    "created_at": "2018-01-15T22:29:37Z",
    "event": "unlabeled",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "label": "https://github.com/sagemath/sage/labels/positive%20review",
    "label_color": "dfffc0",
    "label_name": "positive review",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282987"
}

archive/issue_events_282988.json:

{
    "actor": "https://github.com/vbraun",
    "commit_id": "f73bb1a6dc81bb8d3be503c6b8303479742f7bbb",
    "commit_repository": "https://github.com/sagemath/sage",
    "created_at": "2018-01-15T22:29:37Z",
    "event": "closed",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20222#event-282988"
}

archive/issue_comments_290950.json:

{
    "body": "Changed branch from **[u/jdemeyer/one_off_doctest_failures_in_a_fresh_install](https://github.com/sagemath/sagetrac-mirror/tree/u/jdemeyer/one_off_doctest_failures_in_a_fresh_install)** to **[`7169df8`](https://github.com/sagemath/sagetrac-mirror/commit/7169df8578eeb59a0de4b649a632f3db2b7c0a4a)**",
    "created_at": "2018-01-15T22:29:37Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290950",
    "user": "https://github.com/vbraun"
}

Changed branch from u/jdemeyer/one_off_doctest_failures_in_a_fresh_install to 7169df8


archive/issue_comments_290951.json:

{
    "body": "<div id=\"comment:22\" align=\"right\">comment:22</div>\n\nI'm seeing these failures again in 8.3.beta1.",
    "created_at": "2018-05-16T18:29:01Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290951",
    "user": "https://github.com/jhpalmieri"
}
comment:22

I'm seeing these failures again in 8.3.beta1.


archive/issue_comments_290952.json:

{
    "body": "Changed commit from **[`7169df8`](https://github.com/sagemath/sagetrac-mirror/commit/7169df8578eeb59a0de4b649a632f3db2b7c0a4a)** to none",
    "created_at": "2018-05-16T18:29:01Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290952",
    "user": "https://github.com/jhpalmieri"
}

Changed commit from 7169df8 to none


archive/issue_comments_290953.json:

{
    "body": "<div id=\"comment:23\" align=\"right\">comment:23</div>\n\nSee #25375 for a followup ticket.",
    "created_at": "2018-05-16T18:29:15Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20222",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20222#issuecomment-290953",
    "user": "https://github.com/jhpalmieri"
}
comment:23

See #25375 for a followup ticket.