-
Notifications
You must be signed in to change notification settings - Fork 20
5 tests are failing #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for reporting. Unfortunately, some cases cannot be reproduced. What is the version of your OS, Python, and PyWSB? |
to reproduce, you can use my fork of nixpkgs at # install the nix package manager
# https://github.com/hardenedlinux/debian-nix-manager
sudo apt install nix-bin
sudo systemctl start nix-daemon
# now you should have a /nix folder in your filesystem
# install nix packages
git clone --depth 2 https://github.com/milahu/nixpkgs --branch webscrapbook-init-at-1.0.0
cd nixpkgs
git diff master # audit my patch versus nixpkgs master branch
sed -i 's/doCheck = false;/doCheck = true;/' pkgs/development/python-modules/webscrapbook/default.nix
cat >shell.nix <<'EOF'
{ pkgs ? (import ./. {}) }:
(pkgs.python39.withPackages (p: with p; [ webscrapbook ])).env
EOF
nix-shell this will fetch (many) compiled packages from cache.nixos.org, i say "try to build" cos the build will fail in the checkPhase |
You did not answer the question. What is the Python and PyWSB version it uses? It doesn't seem that a normal Python implementation will get your result, and we probably can not and would not support a special incompatible Python implementation. |
nix-shell
python --version
# Python 3.9.6 PyWSB master = 1.0.0 as declared in the build file python 3.8.12 → 16 tests are failing
|
Please check the following code and report the result in that environment: import mimetypes
mimetypes.guess_type('test.js') |
|
That's bizarre. A normal python implementation should return |
yepp, should be let me see ... |
i would call this a bug in python ...
https://github.com/python/cpython/blob/main/Lib/mimetypes.py#L381 # /nix/store/dgmp76d54xxb3bka1fph17yz7n8rfkai-python3-3.8.12/lib/python3.8/mimetypes.py
def init(files=None):
if files is None or _db is None:
db = MimeTypes()
for file in files:
if os.path.isfile(file):
db.read(file) # /etc/mime.types
types_map = db.types_map[True] and later returns types_map[True]['.js'] # -> application/x-javascript
the last entry
|
nope, its sorted by alphabet
|
|
I would consider it a feature rather than a bug. We would force canonical MIME for .js instead. |
- .astimezone() for a datetime object with a pre-epoch time raises an error on Windows. (see: https://bugs.python.org/issue36759) - Remove affected test as we don't expect a pre-epoch timestamp.
- atime is modified after running checksum. Check mtime and size instead.
Current implementation of app.base is not compatible with werkzeug 2.*. Remove this feature as it's rather ad hoc.
1.1.0 should have fixed all issues. |
yepp : ) all tests are passing on python 3.8 and python 3.9 closing |
blame dependencies versions?
The text was updated successfully, but these errors were encountered: