~ubuntu-branches/ubuntu/trusty/python3.3/trusty

« back to all changes in this revision

Viewing changes to Lib/test/test_fcntl.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-11-19 08:46:55 UTC
  • mfrom: (22.1.15 sid)
  • Revision ID: package-import@ubuntu.com-20131119084655-pueqfadzs5v1xf53
Tags: 3.3.3-1
* Python 3.3.3 release.
* Update to 20131119 from the 3.3 branch.
* Regenerate the patches.
* Update the symbols files.
* Fix test support when the running kernel doesn't handle port reuse.
* libpython3.3-minimal replaces libpython3.3-stdlib (<< 3.2.3-7).
  Closes: #725240.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
import unittest
12
12
from test.support import verbose, TESTFN, unlink, run_unittest, import_module
13
13
 
14
 
# Skip test if no fnctl module.
 
14
# Skip test if no fcntl module.
15
15
fcntl = import_module('fcntl')
16
16
 
17
17
 
35
35
            pid_t = 'l'
36
36
        lockdata = struct.pack(off_t + off_t + pid_t + 'hh', 0, 0, 0,
37
37
                               fcntl.F_WRLCK, 0)
 
38
    elif sys.platform.startswith('gnukfreebsd'):
 
39
        lockdata = struct.pack('qqihhi', 0, 0, 0, fcntl.F_WRLCK, 0, 0)
38
40
    elif sys.platform in ['aix3', 'aix4', 'hp-uxB', 'unixware7']:
39
41
        lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
40
42
    elif sys.platform in ['os2emx']: