Commit c0836d16 by Ned Batchelder

Lint improvements.

parent 062b4c55
...@@ -215,7 +215,7 @@ class TestLimits(JailCodeHelpers, unittest.TestCase): ...@@ -215,7 +215,7 @@ class TestLimits(JailCodeHelpers, unittest.TestCase):
self.assertResultOk(res) self.assertResultOk(res)
self.assertEqual(res.stdout, "10\n") self.assertEqual(res.stdout, "10\n")
# But if we try to read all of it, we'll be killed by the real-time limit. # If we try to read all of it, we'll be killed by the real-time limit.
res = jailpy(code="x = open('/dev/random').read(); print 'Done!'") res = jailpy(code="x = open('/dev/random').read(); print 'Done!'")
self.assertNotEqual(res.status, 0) self.assertNotEqual(res.status, 0)
......
...@@ -36,7 +36,7 @@ class JsonSafeTest(unittest.TestCase): ...@@ -36,7 +36,7 @@ class JsonSafeTest(unittest.TestCase):
unicode_char = unichr(code) unicode_char = unichr(code)
# Try it as a dictionary value # Try it as a dictionary value
result = json_safe({'test': unicode_char}) json_safe({'test': unicode_char})
# Different json libraries treat these bad Unicode characters # Different json libraries treat these bad Unicode characters
# differently. All we care about is that no error is raised from # differently. All we care about is that no error is raised from
# json_safe. # json_safe.
...@@ -49,7 +49,7 @@ class JsonSafeTest(unittest.TestCase): ...@@ -49,7 +49,7 @@ class JsonSafeTest(unittest.TestCase):
unicode_char = unichr(code) unicode_char = unichr(code)
# Try it is a dictionary key # Try it is a dictionary key
result = json_safe({unicode_char: 'test'}) json_safe({unicode_char: 'test'})
# Different json libraries treat these bad Unicode characters # Different json libraries treat these bad Unicode characters
# differently. All we care about is that no error is raised from # differently. All we care about is that no error is raised from
# json_safe. # json_safe.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment