Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7056509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:52:32+00:00 2026-05-28T03:52:32+00:00

I am working on an web application using flask, postgresql and sqlalchemy and coding

  • 0

I am working on an web application using flask, postgresql and sqlalchemy and coding in Eclipse.
I am using python unittest to test basic functions.

So I was editing my code and by mistake I typed ∫ in a comment. Since it was in a comment I did not bother to remove it(I know about encodings and all but still I did it!) I ran my unittest and it did not run any test for obvious reason. But the problem is I was not able to find reason of error until I ran the local server and then I was able to find the error.

I have similar problems in past where some unknown small mistake stops my test to even begin without even informing me the source of error.

So my question is there any way to find source of error while using python unittest module and avoid situations like mentioned above?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:52:33+00:00Added an answer on May 28, 2026 at 3:52 am

    Running a basic unittest example with a # ∫ comment added gives me the following error:

      File "example.py", line 4  
    SyntaxError: Non-ASCII character '\xe2' in file x.py on line 4, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
    

    With python -m unittest example I get the same exception (with a somewhat longer backtrace).

    So it seems this is not an unittest issue.
    Are you using an Eclipse plugin to run your tests? If so, try running it from the command line; if that works fine this is likely a bug in that plugin.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a web application using Python (Django) and would like to
I am working on a web application using Flask. One of the views is
I'm currently working on a social web application using python/django. Recently I heard about
I have a web application im currently working on in python. I'm using Django
I'm currently working on web application using VB in ASP.NET. Right now I have
I'm working in a web application using VB.NET. There is also VisualBasic code mixed
I am working on a web application (using Grails) which will generate a gift
I am working on a web application using ASP.NET 3.5. The application has hundreds
I'm working on a web application using JSP/Servlets, etc. And I have a lot
I'm working on a web application and using the jQuery plug-in Colorbox to pop

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.