Docker Community Forums

Share and learn in the Docker community.

Official Python dockerfile "make test" error


(Coreyhanson) #1

I’ve been trying to create a Python3.6 Dockerfile using a different distro as a base image, but had gotten errors when testing the build. To narrow down the cause, and make sure I start from a solid starting point, I took the official Python 3.6 Dockerfile for Debian and built an image that went right up to the “make” section in the code.

I started the container and rain “make test” I got this error message:


FAIL: test_attributes (test.test_os.TestScandir)

Traceback (most recent call last):
File “/usr/src/python/Lib/test/test_os.py”, line 3273, in test_attributes
self.check_entry(entry, ‘dir’, True, False, False)
File “/usr/src/python/Lib/test/test_os.py”, line 3228, in check_entry
os.stat(entry.path, follow_symlinks=False).st_ino)
AssertionError: 289524896 != 4380515


Ran 245 tests in 0.474s

FAILED (failures=1, skipped=36)
test test_os failed
2 tests failed again:
test_os test_shutil

Total duration: 2 min 32 sec
Tests result: FAILURE
Makefile:1043: recipe for target ‘test’ failed
make: *** [test] Error 2


Is this normal, having no impact on the functionality or am I doing something wrong during build?