#27202 closed enhancement (fixed)

py3: fix doctests in random graphs generators

Reported by: dcoudert Owned by:
Priority: major Milestone: sage-8.7
Component: graph theory Keywords: py3, graph
Cc: Merged in:
Authors: David Coudert Reviewers: Frédéric Chapoton
Report Upstream: N/A Work issues:
Branch: 2da5cec (Commits) Commit: 2da5cec5ff882c17921cf890f863f088eb0bce17
Dependencies: Stopgaps:

Description

We change doctests in RandomBarabasiAlbert, RandomNewmanWattsStrogatz, RandomHolmeKim, RandomTreePowerlaw, RandomRegular and RandomShell.

Several failing doctests in py3 were marked as 32-bit or 64-bit. Instead of adding extra tags, we change the doctests to more robust once, i.e., not depending of the precise list of edges.

We also take the opportunity to clean the methods.

Change History (7)

comment:1 Changed 11 months ago by dcoudert

  • Branch set to public/27202_random_graphs_generators
  • Commit set to c5a8294883c9eab340352c5334aa30dd01a1130a
  • Status changed from new to needs_review

New commits:

c5a8294trac #27202: fix doctests in generators/random.py

comment:2 Changed 11 months ago by git

  • Commit changed from c5a8294883c9eab340352c5334aa30dd01a1130a to b33884695e419039200f4fe46229a2c1b7750e8b

Branch pushed to git repo; I updated commit sha1. New commits:

b338846trac #27202: fix doctest in RandomBarabasiAlbert

comment:3 Changed 11 months ago by chapoton

at least one patchbot was not happy with

+        sage: G.degree_sequence()
+        [4, 3, 3, 2, 2, 2]

Maybe this should be removed or tagged #random ?

comment:4 Changed 11 months ago by git

  • Commit changed from b33884695e419039200f4fe46229a2c1b7750e8b to 2da5cec5ff882c17921cf890f863f088eb0bce17

Branch pushed to git repo; I updated commit sha1. New commits:

2da5cectrac #27202: tag a doctest # random

comment:5 Changed 11 months ago by dcoudert

I tagged it # random.

comment:6 Changed 11 months ago by chapoton

  • Reviewers set to Frédéric Chapoton
  • Status changed from needs_review to positive_review

ok

comment:7 Changed 10 months ago by vbraun

  • Branch changed from public/27202_random_graphs_generators to 2da5cec5ff882c17921cf890f863f088eb0bce17
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.