Apply typo fixes identified incode review by @paulromano

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Jonathan Shimwell 2023-01-11 09:32:02 +00:00 committed by GitHub
parent 577157b846
commit 2c9df1b77e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -267,7 +267,7 @@ class Geometry:
----------
path : PathLike, optional
Path to geometry XML file
materials : openmc.Materials or or PathLike
materials : openmc.Materials or PathLike
Materials used to assign to cells. If PathLike, an attempt is made
to generate materials from the provided xml file.

View file

@ -290,7 +290,6 @@ def test_from_xml(run_in_tmpdir, mixed_lattice_model):
geom = openmc.Geometry.from_xml(path='geometry.xml', materials=None)
assert 'Unable to set "materials" to "None"' in str(excinfo.value)
# checking that the default args also work
geom = openmc.Geometry.from_xml()
assert isinstance(geom, openmc.Geometry)