Ticket #1151 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Preparetest is broken with Python 2.5.2 after the last change

Reported by: monzum Owned by: leonwlaw
Priority: major Milestone:
Component: - Version: 0.1t
Severity: Medium Keywords:
Cc: Blocking:
Blocked By:

Description

Commit r6051 added a line in preparetest which broke preparetest for Python 2.5.2. Below is the error I receive.

monzum@blackbox:~/trunk$ python preparetest.py ../seattle/
Traceback (most recent call last):
  File "preparetest.py", line 323, in <module>
    main()
  File "preparetest.py", line 195, in main
    shutil.copytree("seash/pyreadline/", target_dir + os.sep + 'pyreadline/', ignore=shutil.ignore_patterns('*.pyc'))
AttributeError: 'module' object has no attribute 'ignore_patterns'

I have undone this change in r6234. Please fix the bug before committing the change in preparetest.

Change History

Changed 6 years ago by leonwlaw

  • status changed from new to closed
  • resolution set to fixed

shutil.ignore_patterns() was new in Python 2.6 but never added to Python 2.5. I removed the ignore pattern to provide backwards compatibility with 2.5 and simplicity (r6235)

Note: See TracTickets for help on using tickets.