mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Thanks Josh Smeaton, Mariusz Felisiak, Sergey Fedoseev, Simon Charettes, Adam Chainz/Johnson and Tim Graham for comments and reviews and Jamie Cockburn for initial patch.
		
			
				
	
	
		
			11 lines
		
	
	
		
			446 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			446 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django.db import NotSupportedError, connection
 | |
| from django.test import SimpleTestCase, skipIfDBFeature
 | |
| 
 | |
| 
 | |
| class DatabaseOperationTests(SimpleTestCase):
 | |
|     @skipIfDBFeature('supports_over_clause')
 | |
|     def test_window_frame_raise_not_supported_error(self):
 | |
|         msg = 'This backend does not support window expressions.'
 | |
|         with self.assertRaisesMessage(NotSupportedError, msg):
 | |
|             connection.ops.window_frame_rows_start_end()
 |