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

Commit

Permalink
trac #28108: fix doctests with benzene and buckygen
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoudert committed Aug 15, 2019
1 parent e240e52 commit e9af570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/features/graph_generators.py
Expand Up @@ -97,7 +97,7 @@ def is_functional(self):
return FeatureTestResult(self, False,
reason="Call `{command}` failed with exit code {e.returncode}".format(command=" ".join(command), e=e))

expected = "Number of fullerenes generated with 13 vertices: 0"
expected = b"Number of fullerenes generated with 13 vertices: 0"
if lines.find(expected) == -1:
return FeatureTestResult(self, False,
reason="Call `{command}` did not produce output which contains `{expected}`".format(command=" ".join(command), expected=expected))
Expand Down Expand Up @@ -146,7 +146,7 @@ def is_functional(self):
return FeatureTestResult(self, False,
reason="Call `{command}` failed with exit code {e.returncode}".format(command=" ".join(command), e=e))

expected = ">>planar_code<<"
expected = b">>planar_code<<"
if not lines.startswith(expected):
return FeatureTestResult(self, False,
reason="Call `{command}` did not produce output that started with `{expected}`.".format(command=" ".join(command), expected=expected))
Expand Down

0 comments on commit e9af570

Please sign in to comment.