Skip to content

Commit

Permalink
Remove useless print() calls from units tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eerovaher committed Jul 2, 2024
1 parent a88b82a commit ba7a3a4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions astropy/units/tests/test_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
)
def test_unit_grammar(strings, unit):
for s in strings:
print(s)
unit2 = u_format.Generic.parse(s)
assert unit2 == unit

Expand All @@ -51,7 +50,6 @@ def test_unit_grammar(strings, unit):
)
def test_unit_grammar_fail(string):
with pytest.raises(ValueError):
print(string)
u_format.Generic.parse(string)


Expand Down Expand Up @@ -100,7 +98,6 @@ def test_unit_grammar_fail(string):
)
def test_cds_grammar(strings, unit):
for s in strings:
print(s)
unit2 = u_format.CDS.parse(s)
assert unit2 == unit

Expand Down Expand Up @@ -134,7 +131,6 @@ def test_cds_grammar(strings, unit):
)
def test_cds_grammar_fail(string):
with pytest.raises(ValueError):
print(string)
u_format.CDS.parse(string)


Expand Down Expand Up @@ -221,7 +217,6 @@ def test_cds_log10_dimensionless():
)
def test_ogip_grammar(strings, unit):
for s in strings:
print(s)
unit2 = u_format.OGIP.parse(s)
assert unit2 == unit

Expand All @@ -239,7 +234,6 @@ def test_ogip_grammar(strings, unit):
)
def test_ogip_grammar_fail(string):
with pytest.raises(ValueError):
print(string)
u_format.OGIP.parse(string)


Expand Down Expand Up @@ -650,7 +644,6 @@ def test_deprecated_did_you_mean_units():
def test_fits_function(string):
# Function units cannot be written, so ensure they're not parsed either.
with pytest.raises(ValueError):
print(string)
u_format.FITS().parse(string)


Expand Down

0 comments on commit ba7a3a4

Please sign in to comment.