Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failling unit-to-str test #2664

Closed
neutrinoceros opened this issue Jun 22, 2020 · 1 comment
Closed

Failling unit-to-str test #2664

neutrinoceros opened this issue Jun 22, 2020 · 1 comment
Labels

Comments

@neutrinoceros
Copy link
Member

Bug report

this bug was apparently introduced with the merging of. #2437

This possibly belongs in unyt

code for reproduction

pytest yt/visualization/tests/test_plotwindow.py::test_set_unit

actual outcome

========================================= FAILURES ==========================================
_______________________________________ test_set_unit _______________________________________

    def test_set_unit():
        ds = fake_random_ds(32, fields=('temperature',), units=('K',))
        slc = SlicePlot(ds, 2, 'temperature')

        orig_array = slc.frb['gas', 'temperature'].copy()

        slc.set_unit('temperature', 'degF')

>       assert str(slc.frb['gas', 'temperature'].units) == '°F'
E       AssertionError: assert 'degF' == '°F'
E         - °F
E         + degF

yt/visualization/tests/test_plotwindow.py:478: AssertionError

versions:
yt: master (b6d9463)
unyt: 2.7.1

@neutrinoceros
Copy link
Member Author

I believe this was resolved with the release of unyt 2.7.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant