nodejs / nodejs/node-gyp

node-gyp/test/fixtures/test-charmap.py:11: DeprecationWarning: 'locale.getde faultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead.

Open
#3,085 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
10.7k
Forks
1.9k
Avg merge
1d 4h
Merged PRs (30d)
5

Description

On master branch when doing npm test it seems the test use outdated python apis, leading to errors.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The warning points to node-gyp/test/fixtures/test-charmap.py line 11; start by running npm test on the master branch and inspecting that fixture's locale call. Update the test to use the supported Python locale APIs, then verify npm test no longer reports the deprecation warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, python
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.