GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Numpy deprecation warning in test_buffer.py · Issue #96742 · python/cpython

Numpy deprecation warning in test_buffer.py #96742

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Numpy deprecation warning in test_buffer.py#96742
Copy link
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@pitrou
pitrou
opened on Sep 10, 2022
Issue body actions

Bug report

When running test_buffer.py on the main branch with Numpy installed, the following warnings are displayed:

0:00:00 load avg: 0.29 Run tests sequentially
0:00:00 load avg: 0.29 [1/1] test_buffer
/home/antoine/cpython/default/Lib/test/test_buffer.py:2298: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  self.assertEqual(b, na.tostring(order='C'))
/home/antoine/cpython/default/Lib/test/test_buffer.py:2321: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  self.assertEqual(b, na.tostring(order='F'))
/home/antoine/cpython/default/Lib/test/test_buffer.py:2345: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  self.assertEqual(b, na.tostring(order='A'))

== Tests result: SUCCESS ==

A clear and concise description of what the bug is.
Include a minimal, reproducible example (https://stackoverflow.com/help/minimal-reproducible-example), if possible.

Your environment

Numpy version 1.23.3, installed from source on a debug build of the CPython main branch.

Activity

  1. pitrou
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Sep 10, 2022
  2. pitrou commented on Sep 10, 2022

    @pitrou
    pitrou
    on Sep 10, 2022
    MemberAuthor
    More actions

    cc @corona10

  3. corona10 commented on Sep 10, 2022

    @corona10
    corona10
    on Sep 10, 2022
    Member
    More actions

    Oops, I pushed the change to e8c1fed at #96738 already.
    If you want to handle it separately please let me know.

  4. pitrou commented on Sep 10, 2022

    @pitrou
    pitrou
    on Sep 10, 2022
    MemberAuthor
    More actions

    No, it's fine to me. Thanks!

  5. pitrou
    closed this as not plannedon Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.