---
title: "Discussion on \"One passing test can hide shared state in Python\" | Hashnode"
description: "Discussion on \"One passing test can hide shared state in Python\". Reproduce a Python mutable-default bug, fix object ownership and test independent calls plus an explicit empty list. Runnable examples included."
url: "https://hashnode.com/posts/one-passing-test-can-hide-shared-state-in-python/6ae763f506f1879202c22b23"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [One passing test can hide shared state in Python](https://doesithold.hashnode.dev/one-passing-test-can-hide-shared-state-in-python?utm_source=hashnode&utm_medium=feed)

Reproduce a Python mutable-default bug, fix object ownership and test independent calls plus an explicit empty list. Runnable examples included.

Nov 1 · 4 min read · doesithold.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)

## Written by

[alemaiorano](https://hashnode.com/@maioale)

@maioale

  
[View profile](https://hashnode.com/@maioale)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
