summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorRoss Barnowski <rossbar@berkeley.edu>2023-01-04 21:00:54 -0800
committerRoss Barnowski <rossbar@berkeley.edu>2023-01-04 21:00:54 -0800
commit068249d794de153bc98b69189944dcffdc85a162 (patch)
tree834f9c6f8a5f92c6a71d3788819ea353df18c1dd /numpy
parentf73d53d1a44ac841458c5be852e05021feec5dff (diff)
downloadnumpy-068249d794de153bc98b69189944dcffdc85a162.tar.gz
TST: Add fixture to avoid issue with randomizing test order.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/polynomial/tests/test_printing.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/polynomial/tests/test_printing.py b/numpy/polynomial/tests/test_printing.py
index 990a0d179..6f2a5092d 100644
--- a/numpy/polynomial/tests/test_printing.py
+++ b/numpy/polynomial/tests/test_printing.py
@@ -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 '