Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =================================== FAILURES ===================================
- ______________________________ Test.test_many_1s _______________________________
- self =
- def test_many_1s(self)=
- """Test with a string having 20,000 1’s and
- 19,001 sequences such that
- the sum of their values is equal to 1000
- [Test con una stringa avente 20,000 valori uguali a 1 e
- 19.001 sequenze tali che
- la somma dei loro valori sia uguale a 1000]"""
- test_seq_len = 20000
- test_int_seq = ",".join(['1'] * test_seq_len)
- test_subtotal = 1000
- expected = test_seq_len - test_subtotal + 1
- > return self.do_test(test_int_seq, test_subtotal, expected)
- test_01.py=74=
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- test_01.py=35= in do_test
- result = program.ex1(test_int_seq, test_subtotal)
- program01.py=47= in ex1
- partial_total += values[j]
- /usr/lib/python3/dist-packages/pytest_timeout.py=382= in write_title
- width = py.io.get_terminal_width()
- /usr/lib/python3/dist-packages/py/_vendored_packages/apipkg.py=148= in __makeattr
- result = importobj(modpath, attrname)
- /usr/lib/python3/dist-packages/py/_vendored_packages/apipkg.py=69= in importobj
- module = __import__(modpath, None, None, ['__doc__'])
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- args = ('py._io.terminalwriter', None, None, ['__doc__']), kargs = {}
- name = 'py._io.terminalwriter'
- def _check_import(*args, **kargs)=
- name = args[0]
- if name in forbidden or (not forbidden and name not in allowed)=
- print(f"Importing {name} ({kargs}) (not allowed)")
- > raise ForbiddenError(f"The import of '{name}' is forbidden")
- E testlib.ForbiddenError= The import of 'py._io.terminalwriter' is forbidden
- testlib.py=42= ForbiddenError
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement