-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
When Python runner has too much data printed to stdout (results in Max Buffer Size Reached (1.5 MiB)
printed to stderr) inside one of the it
blocks, sometimes the test aborts but exit code is not set to non-zero, so the test will pass.
import codewars_test as test
@test.describe("Example")
def test_group():
@test.it("test case 1")
def test_case_1():
test.pass_()
@test.it("test case 2")
def test_case_2():
print('a'*2000000)
test.fail('Should not reach here')
I can't reproduce similar behaviours in JS.
This seems to be related to the first few blocks and hence extremely sensitive to how tests are set up. For example, this works:
import codewars_test as test
@test.describe("Example")
def test_group():
@test.it("test case 1")
def test_case_1():
test.pass_()
for _ in range(2):
@test.it("test case 2")
def test_case_2():
print('a'*2000000)
test.fail('Should not reach here')
But this does not:
import codewars_test as test
@test.describe("Example")
def test_group():
@test.it("test case 1")
def test_case_1():
test.pass_()
for _ in range(3):
@test.it("test case 2")
def test_case_2():
print('a'*2000000)
test.fail('Should not reach here')
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity