[issue32811] test_os.py fails when run in docker container on OSX host

2018-02-10 Thread Ned Deily

Ned Deily  added the comment:

Thanks for the elaboration.  Your report wasn't confusing.  The fact remains 
that we don't test or claim to support Python running under Docker on macOS.  
If someone wants to investigate further (and re-open this issue), they are 
welcome to but I personally have no interest in it.  Just taking a quick look 
at the Docker for Mac documentation indicates it implements its own file 
system, osxfs, with its own quirks.  So, if that is in use, it could very well 
be the source of the test failures.  I would think that running containers 
under Docker on macOS would be enough of a different animal that it would need 
to be considered a new platform with regard to Python support.  Unless someone 
steps up and wants to fully support such a configuration (which would mean a 
buildbot among other things), I don't think we want to go down that path.  
Sorry!

--
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32811] test_os.py fails when run in docker container on OSX host

2018-02-10 Thread Alexander Mohr

Alexander Mohr  added the comment:

here's how to repro, download fresh debian:stretch image, then install reqs for 
python:
apt-get update && apt-get install curl build-essential libssl-dev libffi-dev 
libmemcached-dev zlib1g-dev

install pyenv-installer:
curl -L 
https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer
 | bash

install and activate python3.6.3:
pyenv install 3.6.3 && pyenv global 3.6.3

run attached test script which I generated from the unittest

--
Added file: https://bugs.python.org/file47436/test.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32811] test_os.py fails when run in docker container on OSX host

2018-02-10 Thread Alexander Mohr

Alexander Mohr  added the comment:

sorry if my report is confusing, the issue is when run in a debian:stretch 
docker container on an OSX host, so running this: docker run --rm -ti 
docker:stretch on osx.  So if you have access to an OSX machine and have docker 
running (18.02.0-ce-mac53) on your OSX machine it should reproduce there.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32811] test_os.py fails when run in docker container on OSX host

2018-02-09 Thread Ned Deily

Ned Deily  added the comment:

The test runs fins running natively on the various macOS systems I have access 
to.  I don't have access to a Docker configuration for macOS so I am unable to 
reproduce and it's not a configuration we explicitly support.  Perhaps you can 
try debugging the test run on your configuration, for example by adding print() 
functions and the like.  Otherwise, there's not likely to be any action on this.

--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32811] test_os.py fails when run in docker container on OSX host

2018-02-09 Thread Alexander Mohr

Alexander Mohr  added the comment:

btw there are some other tests that fail too after removing that test like:

test test_tokenize failed -- Traceback (most recent call last):
  File "/build/Python-3.6.3/Lib/test/test_tokenize.py", line 1557, in 
test_random_files
testfiles.remove(os.path.join(tempdir, "test_%s.py") % f)
ValueError: list.remove(x): x not in list

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32811] test_os.py fails when run in docker container on OSX host

2018-02-09 Thread Alexander Mohr

New submission from Alexander Mohr :

This test fails when run in a debian docker container from a OSX host with the 
following error:

test test_os failed -- Traceback (most recent call last):
  File "/build/Python-3.6.3/Lib/test/test_os.py", line 3273, in test_attributes
self.check_entry(entry, 'dir', True, False, False)
  File "/build/Python-3.6.3/Lib/test/test_os.py", line 3228, in check_entry
os.stat(entry.path, follow_symlinks=False).st_ino)
AssertionError: 3018467 != 1419357

works fine when run on ubuntu host.  If this is a docker problem I'd be happy 
to report there.

--
components: Build
messages: 311921
nosy: thehesiod
priority: normal
severity: normal
status: open
title: test_os.py fails when run in docker container on OSX host
type: behavior
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com