diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2023-01-05 09:13:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-05 09:13:46 +0100 |
commit | c1697e0df90a69ab53892e47e33aa809c1b92b29 (patch) | |
tree | 930d3f3aa916f6ecbf260530df31c468d65b0139 | |
parent | 46142454ed4746ac991d4074d2943d892ede35d6 (diff) | |
parent | 068249d794de153bc98b69189944dcffdc85a162 (diff) | |
download | numpy-c1697e0df90a69ab53892e47e33aa809c1b92b29.tar.gz |
Merge pull request #22931 from rossbar/fix-gh-22825
TST: Add fixture to avoid issue with randomizing test order.
-rw-r--r-- | numpy/polynomial/tests/test_printing.py | 4 |
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 ' |