Skip to content

Commit c66a3f9

Browse files
committed
tests: remove redundant parentheses in print statements
1 parent b1605e3 commit c66a3f9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

schema_salad/tests/test_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ def test_errors(self):
3333
load_and_validate(document_loader, avsc_names,
3434
six.text_type(get_data("tests/"+t)), True)
3535
except ValidationException as e:
36-
print(("\n", e))
36+
print("\n", e)
3737
raise

schema_salad/tests/test_examples.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def test_scoped_id(self):
287287
}, ra)
288288

289289
g = makerdf(None, ra, ctx)
290-
print((g.serialize(format="n3")))
290+
print(g.serialize(format="n3"))
291291

292292
ra, _ = ldr.resolve_all(cmap({
293293
"location": "foo",
@@ -301,7 +301,7 @@ def test_scoped_id(self):
301301
}, ra)
302302

303303
g = makerdf(None, ra, ctx)
304-
print((g.serialize(format="n3")))
304+
print(g.serialize(format="n3"))
305305

306306
ra, _ = ldr.resolve_all(cmap({
307307
"id": "foo",
@@ -315,7 +315,7 @@ def test_scoped_id(self):
315315
}, ra)
316316

317317
g = makerdf(None, ra, ctx)
318-
print((g.serialize(format="n3")))
318+
print(g.serialize(format="n3"))
319319

320320
ra, _ = ldr.resolve_all(cmap({
321321
"location": "foo",
@@ -329,7 +329,7 @@ def test_scoped_id(self):
329329
}, ra)
330330

331331
g = makerdf(None, ra, ctx)
332-
print((g.serialize(format="n3")))
332+
print(g.serialize(format="n3"))
333333

334334
def test_mixin(self):
335335
base_url = "file://" + os.getcwd() + "/tests/"

schema_salad/tests/test_fetch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ def test_cache(self):
5555
loader = schema_salad.ref_resolver.Loader({})
5656
foo = "file://%s/foo.txt" % os.getcwd()
5757
loader.cache.update({foo: "hello: foo"})
58-
print((loader.cache))
58+
print(loader.cache)
5959
self.assertEqual({"hello": "foo"}, loader.resolve_ref("foo.txt")[0])
6060
self.assertTrue(loader.check_exists(foo))

0 commit comments

Comments
 (0)