Commits

Author Commit Message Labels Comments Date
Jeff Allen
Add PYTHONIOENCODING env var addressing issue #1876, and -E option to suppress. Also introduces registry items python.io.encoding and python.io.errors, with appropriate sequence of priority for site, user, environment variable and command-line values. Additions to test.test_sys (from CPython 2.7) and test.test_sys_jy for registry items.
Jeff Allen
Merge to trunk
Santoso Wijaya
Fixes type of time.strptime as per issue #1964 part 2. Fallback to python from native code used the wrong function, revealed by original %f fix.
Jeff Allen
Update test_bz2 to CPython 2.7.6 version to avoid CPython issue 17843. testbz2_bigmem.bz2 used before this patch is detected by certain anti-virus software as Trojan-ArcBomb.BZip.Agent: see CPython issue 17843.
Jeff Allen
[Trivial] Correct typo FIME -> FIXME
Jeff Allen
Correct issue #2109 test failures in test_httpservers on Windows. In the affected tests, use method names that do not have a special meaning to packet filtering software (on Windows, the Base Filtering Engine). In clause test_version_none, use a method that would be valid if HTTP/0.9 were not correctly detected. Also Python issue 20155.
Jim Baker
Enable mixing Python and Java types in the bases of a class when using a metaclass.
Frank Wierzbicki
Move indexer support into code generation.
Frank Wierzbicki
Fix string substition error.
Jeff Allen
Merge
Jeff Allen
[Trivial] Remove skip from passing test_builtin..test_input_and_raw_input. Underlying bug was fixed as part of console changes at issue #2082.
Santoso Wijaya
Fixes hex formatting issues #2013 (slow) and #2075 (incorrect padding) Special-cases binary, octal and hex formatting for speed and corrects alternate (#) formatting bug, allowing removal of several FIXMEs from test_types.
Santoso Wijaya
Fix #2083, to prevent os.unlink() deleting directory. Also adds test to test_os_jy and a NEWS entry (JA).
Jim Baker
Support 't' (text) in open mode - this was a recent regression
Santoso Wijaya
Fixes #1964 time.strptime() now supports %f in format. Change to modules.Time to revert to Python implementation if %f seen, and to map IllegalArgumentException to ValueError along line suggested by arfrever. Unit tests for both.
Jeff Allen
Update test_datetime from lib-python and add FIXME-skips.
Santoso Wijaya
Fixes #2071 datetime.date.strftime support for %f.
Santoso Wijaya
Fixes #2033 failing test for 1 Mar after 29 Feb. This was a test failure in test_strptime (test_mar1_comes_after_feb29_even_when_omitting_the_year). Solution falls back to the Python implementation for formats that include this case.
Jeff Allen
Sub-classes of file are made able to override close() method. Adds a close() method to file.derived and provides a regenerated PyFileDerived class. testExit in test_file2k now passes.
Jeff Allen
Add test that Jython file.next() mixes with file.read* operations. Remove FIXME from skip of CPython-specific test and add a Jython-specific test, to show that iteartion and normal reading mix correctly.
Jeff Allen
In file.writelines(), notice if an iterable argument closes the file. Resolves test_file2k failure in testNastyWritelinesGenerator.
Jeff Allen
print built-in now detects missing stdout as RuntimeError. Fixes test failure in test_file2k (test_del_stdout_before_print) and removes the skip.
Jeff Allen
Resolve test_file2k weak reference test failure. This change set borrows the technique, used elsewhere in the suite, of giving Java GC a chance to operate before testing reference expiration.
Jeff Allen
Re-work PyFile.parseMode to accept 'Ub', curing test_file2k failure. Re-used the logic from _io.OpenMode rather than emulate the string-mangling from CPython. Removes a skip.
Jeff Allen
Fix repr(file) to use repr(filename) with escapes and quotes. Removes a skip in test_file2k, and aligns Jython behaviour with CPython 2.7.5, amending test_repr to require %r not '%s' filename format.
Jeff Allen
Fix wrong name expected for file() keyword argument. Should be 'buffering' not 'bufsize': this must go back some time!
Jeff Allen
Close and delete files every time in test_file2k. Each test now closes and deletes its test file, not relying on deterministic garbage collection. On Windows, open files cannot be deleted, and so sloppiness in one test used to create a cascade of "unlink" errors in subsequent tests.
Jeff Allen
Formatting, NEWS and acknowledgement. Mostly related to #1860.
cjsimpson
Fix for bug 1860. Changed loop logic in PyArray to correctly handle negative step size when setting a slice. Added Java unittest covering this case. Removed skip from test_extended_set_del_slice in test_array.py since this will now pass.
Jeff Allen
Merge buffer work on PyArray
  1. Prev
  2. Next