Skip to content

Commit

Permalink
TST: Add fixture to avoid issue with randomizing test order.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbar authored and charris committed Jan 8, 2023
1 parent c341fcd commit 8d334b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions numpy/polynomial/tests/test_printing.py
Expand Up @@ -478,6 +478,10 @@ class TestPrintOptions:
are too small or too large.
"""

@pytest.fixture(scope='class', autouse=True)
def use_ascii(self):
poly.set_default_printstyle('ascii')

def test_str(self):
p = poly.Polynomial([1/2, 1/7, 1/7*10**8, 1/7*10**9])
assert_equal(str(p), '0.5 + 0.14285714 x + 14285714.28571429 x**2 '
Expand Down

0 comments on commit 8d334b0

Please sign in to comment.